You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/01/20 01:53:22 UTC

popup settings now working

Even though I set width and height, i always get a 800/500 popup..

final PopupSettings popupSettings = new PopupSettings(PageMap.forName("welcomevideo"));
popupSettings.setWidth(975);
popupSettings.setHeight(610);
add(new Link<Void>("movieLink") {
private static final long serialVersionUID = 1L;

@Override
public void onClick() {
//do stuff...
}
}.setPopupSettings(popupSettings));
}

renders this html..


<a onclick="var w = window.open(href, 'welcomevideo', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=800,height=500'); if(w.blur) w.focus(); return false;" href="../../?wicket:interface=wicket-5:38:sectionsContainer:watchDemoStep:movieLink::ILinkListener::" wicketpath="sectionsContainer_watchDemoStep_movieLink" target="welcomevideo">
<img wicketpath="sectionsContainer_watchDemoStep_movieLink___relative__path__prefix__7" style="border: thin solid black;" src="../../img/video.png"/>
</a>