And to solve your problem, you can specify the printdlg size (in config/common/custom.js for instance): PM.Dlg.printDlgOptions.width = 380; PM.Dlg.printDlgOptions.height= 400;
Le 21/03/2013 15:02, Thomas RAFFIN a écrit : > Well I think your code didn't work because it modify CSS before elements > are inserted, no? > > Le 21/03/2013 14:55, Chris forum a écrit : >> Hi Thomas, >> >> Thx, your suggestion works, advanced options are now displayed. >> But the dialog window is not resized accordingly. >> >> Actually, after many tries, I realized that what I have added in >> custom.js is not read! >> Avanced options are displayed only because of the css display:block >> >> Is it right to start with: >> $.extend(*PM.Pmapper*, >> >> Do you notice something else wrong in my custom.js add? >> >> Chris >> >> On Thu, Mar 21, 2013 at 11:47 AM, Thomas RAFFIN <traf...@sirap.fr >> <mailto:traf...@sirap.fr>> wrote: >> >> Hi, >> >> I think you should try to add this in your config/common/custom.css : >> >> .printdlg div.printdlg_advanced { >> display: block; >> } >> >> Thomas >> >> Le 21/03/2013 10:58, Chris forum a écrit : >> > Hello all, >> > >> > I would like the print advanced options (paper size, orientation >> ,title, >> > ...) displayed by default when one hit the 'print' link. >> > I have tried to add the following into the custom.js file of my >> project: >> > $.extend(PM.Pmapper, >> > { >> > openPrint: function() { >> > this.createDnRDlg(this.printDlgOptions, _p('Print Settings'), >> > 'printdlg.phtml?'+SID); >> > $('#pmDlgContainer div.printdlg_advanced').show(); >> > var height = ($.browser.msie && >> (parseInt($.browser.version) <= 7.0)) >> > ? $('#printdlg').height() : $('#printdlg').innerHeight(); >> > $('#pmDlgContainer').height(parseInt(height) + 60); >> > this.adaptDWin($('#pmDlgContainer')); >> > } >> > }); >> > >> > Not working so far... Do you see what I am missing? >> > >> > Thx! >> > Chris >> > >> >> ------------------------------------------------------------------------------ >> > Everyone hates slow websites. So do we. >> > Make your web apps faster with AppDynamics >> > Download AppDynamics Lite for free today: >> > http://p.sf.net/sfu/appdyn_d2d_mar >> > _______________________________________________ >> > pmapper-users mailing list >> > pmapper-users@lists.sourceforge.net >> <mailto:pmapper-users@lists.sourceforge.net> >> > https://lists.sourceforge.net/lists/listinfo/pmapper-users >> > >> > >> >> -- >> >> >> Thomas RAFFIN >> Chef de Projet Internet >> traf...@sirap.fr <mailto:traf...@sirap.fr> >> <mailto:traf...@sirap.fr <mailto:traf...@sirap.fr>> Sirap >> <http://sirap.fr> Tel >> : 04 75 72 84 10 >> Fax : 04 75 70 07 98 >> Rue Paul Louis Héroult - BP 253 >> 26106 Romans cedex >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> <mailto:pmapper-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> >> -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr <mailto:traf...@sirap.fr> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users