Question

Durandal has composition support for modal dialogs. I've been able to use them successfully, though there's a strange graphical artifact I cannot seem to eradicate. I'm pretty sure it's part of a div with class 'durandal-wrapper', though it's not present until runtime. How can I prevent this behavior without resorting to monkey patching some "overflow-y:blah;" onto an element after it's created and attached to the DOM by Durandal?

Example 1 Example 2

Was it helpful?

Solution

A durandal view must have a single root element and will create one if it doesn't exist. Try wrapping your views inside a root div tag and it should render without that class name.

https://groups.google.com/forum/#!topic/durandaljs/y88-uakWn6k

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top