Hello, I'm using StackLayoutPanel to create a menu navigation panel. I encountered some problems on IE (both IE7 and IE8) related to the StackLayoutPanel.
For some reason I want to hide the menu panel first and then show it later on. I used myStackLayoutPanel.setVisible(false) to hide it and myStackLayoutPanel.setVisible(true) to show it afterwards. It works fine on Firefox, Safari but not IE. On IE, after I hide and then show it, the StackLayoutPanel is not displayed correctly. Only the content of the first stack is expanded and shown and all the other stack headers are missing. But it works fine when I show it directly without hiding it first. I guess this problem is somehow related to the IE's interpretation of the 'display' style for the StackLayoutPanel but I have no clue why this is happening. There's another issue I discovered while I wrote a workaround for the above issue. I used UiBinder to specify the StackLayoutPanel's content as following: <g:StackLayoutPanel unit='PX' height='350px'> And after I use myStackLayoutPanel.setVisible(true) to make the StackLayoutPanel visible, I try to clear the parent panel and add it again to it's parent panel (to circumvent the issue described above). Then the re-added StackLayoutPanel lost its 'height' style value somehow. I have to specify the height value again for the StackLayoutPanel. I read that the layout panels will only work properly when the browser is in standard mode. I used '<!doctype html>' at the top of my html page to trigger the standards mode. Therefore I suppose my problems are not because of that. Maybe I did something wrong. Does anybody know how to hide and show a StackLayoutPanel properly? thanks for your suggestions! Dennis -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
