PDA

View Full Version : window goes to the bottom of page instead of disappearing in "hide()"



ahsec
9 Jul 2012, 9:45 AM
hey...

I have a window that once I invoke hide() , sometimes, instead of disappearing , it goes down to the bottom of the page....

as follows:

the window is on the bottom of the page...

anyone knows why???

36979

stimpy
9 Jul 2012, 10:26 AM
Check with width of the container in firebug.

When i get this problem it means someting is too narrow .

sword-it
9 Jul 2012, 10:23 PM
HI!

try to give hideMode for your window.

Sample:-



var sampleWindow = Ext.create('Ext.window.Window', {
title: 'Sample Window',
height: 200,
width: 400,
hideMode: 'visibility',
...
})

ahsec
10 Jul 2012, 2:01 AM
I tried the hideMode ...it was display..changed it to visibility and it still wouldnt work

However..when I hovered on top of the weird window that u saw on the image I found that my window was duplicated...

it has the original element which is hidden as needed... and another one that isn't and has the same id that i gave the original window.....

it happens only after I do show-->hide-->show ...

why is my element duplicated into a trash-DOM when I invoke show() ??


Thanks

scottmartin
10 Jul 2012, 1:23 PM
This is not normal behavior. You may need to create a small working example that exhibits your problem so we can take a look. Sometimes isolating an issue can solve it for you as well ;)

Scott.