[Wicket-user] ModalWindow's initial size (Wicket 2)

2006-10-20 Thread Stefan Lindner
I have a modal window with a Panel inside. If I understand the javadoc for 
ModalWindow, it's size can be determinded by it's contents by setting
 
setResizable(false)
setUseInitialHeight(true)
 
Is this only true for it's height? I can't find a similar method for the width 
of the ModalWindow.
Ok, the Panel is displayed complete, but the surronding frame is smaller than 
the content.
 
Did I understand it correctly that the size can only determined automatically, 
if the contents is a component? This means if I use ModalWindows in page mode 
(because of java script components) the size is not determined automatically? 
And if so:  Is this a limitation of HTML/JavaScript or is it a current 
limitation of ModalWindow's implementation?
 
Stefan Lindner
 
winmail.dat-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow's initial size (Wicket 2)

2006-10-20 Thread Matej Knopp
Hi, the initial size really only works with height, and only if the 
window has a panel content and is not resizable.

There's no default width, nor width and height for window with page. 
This is a limitation of html, there's no way to support that.

The idea is that if you use panel in window, you set the width on the 
window, and the panel inside should automatically adjust (if you have 
styled it properly).

This is how html works. The inner element can affect outer element 
height, however with width it is the oposite. The outer element can 
affect inner element width.

-Matej


Stefan Lindner wrote:
 I have a modal window with a Panel inside. If I understand the javadoc for 
 ModalWindow, it's size can be determinded by it's contents by setting
  
 setResizable(false)
 setUseInitialHeight(true)
  
 Is this only true for it's height? I can't find a similar method for the 
 width of the ModalWindow.
 Ok, the Panel is displayed complete, but the surronding frame is smaller than 
 the content.
  
 Did I understand it correctly that the size can only determined 
 automatically, if the contents is a component? This means if I use 
 ModalWindows in page mode (because of java script components) the size is not 
 determined automatically? And if so:  Is this a limitation of HTML/JavaScript 
 or is it a current limitation of ModalWindow's implementation?
  
 Stefan Lindner
  
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user