qwindow overflow amendment

2 views
Skip to first unread message

andy

unread,
Jun 10, 2010, 6:45:47 PM6/10/10
to Qutensil
hi ive made the following change to qwindow.js:



win.center.setStyle({overflow:'hidden',etc

this sets the qwindows contents as overflow hidden so when you resize
down the qwindow any fixed with stuff inside desent show outside the
qwindow

wonderingwout

unread,
Jun 11, 2010, 3:03:01 AM6/11/10
to Qutensil
Adapting the stylesheets might be a better option here as well.
Just add:

Q.addCss("div.q-window div.q-center", "overflow:hidden;");

And you're all set.
This applies to all the subclasses.

andy

unread,
Jun 11, 2010, 3:40:34 AM6/11/10
to Qutensil
brilliant!!!

andrew edmundson

unread,
Jun 11, 2010, 4:18:42 AM6/11/10
to qute...@googlegroups.com
Q.addCss("div.q-window div.q-center", "overflow:hidden;");

Just checked this, it does work but..

The top, bottom, left and right q-edge (window edges) do not display when this is added, the corner images show ok though on the window..


Im using it like this when the q has loaded if this helps..:

document.observe('q:loaded', function() {


Q.addCss("div.q-window div.q-center", "overflow:hidden;");

});


For the moment ive left it in: win.center.setStyle({overflow:'hidden',etc inside q.window.js

thanks
Andy

wonderingwout

unread,
Jun 11, 2010, 4:14:31 AM6/11/10
to Qutensil
My bad, you should try this:

document.observe('q:loaded', function() {
Q.addCss("div.q-window div.q-content", "overflow:hidden;");
});

q-center is actually one level too high to put an overflow:hidden
because it holds the corners as well.
q-center should work as expected.

wonderingwout

unread,
Jun 11, 2010, 4:20:29 AM6/11/10
to Qutensil
I mean q-content...


On Jun 11, 10:18 am, "andrew edmundson" <and...@edcomp.co.uk> wrote:

andrew edmundson

unread,
Jun 13, 2010, 4:09:27 AM6/13/10
to qute...@googlegroups.com
Excellent that worked perfect.
Reply all
Reply to author
Forward
0 new messages