Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread Marco Hugentobler
Hi René-Luc du to the method adjustSizeToText() Someone can confim it ? I guess yes. 'adjustSizeToText()' works for text, not html. Html support for composer label was added recently to the composer label class. Please adapt the relevant lines to work with html labels too. Question for

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread René-Luc D'Hont
Hi Marco I guess yes. 'adjustSizeToText()' works for text, not html. Html support for composer label was added recently to the composer label class. Please adapt the relevant lines to work with html labels too. I'll adapt it Question for Marco, Why removed label, if the request doesn't

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread Marco Hugentobler
I prefer to remove the label only if the user gives an empty text. Can I do it ? No objection from me. Currently, I'm not using the text replacement capabilities. Marco On 28.05.2013 11:34, René-Luc D'Hont wrote: Hi Marco I guess yes. 'adjustSizeToText()' works for text, not html.

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread Andreas Neumann
+1 from me. I am not using this feature for now but will in the future. Andreas Am 28.05.2013 15:36, schrieb Marco Hugentobler: I prefer to remove the label only if the user gives an empty text. Can I do it ? No objection from me. Currently, I'm not using the text replacement capabilities.

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread Marco Hugentobler
So for me, simply removing the adjustSizeToText call would be enough. Or we have to make sure this method does the job correctly, which may be a bit hard to implement : we need to avoid to have collision with other composition items, etc. The problem is if the client provided text does not

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread kimaidou
2013/5/28 Marco Hugentobler marco.hugentob...@sourcepole.ch So for me, simply removing the adjustSizeToText call would be enough. Or we have to make sure this method does the job correctly, which may be a bit hard to implement : we need to avoid to have collision with other composition

Re: [Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-28 Thread kimaidou
Hi again I reply here because I have just noticed a very cool new feature in QGIS composer. You can add an HTML box, give a file stored in the disk containing the HTML code to display in the box. I knew this option. What I did not notice was the ability to let QGIS create as many pages as

[Qgis-developer] QGIS Server - GetPrint request does not respect text boxes size and position if dynamic content passed

2013-05-27 Thread rldhont
Hi Marco and other devs, In src/mapserver/qgsconfigparser.cpp:530 we can read : //replace label text foreach ( QgsComposerLabel *currentLabel, composerLabels ) { QString title = parameterMap.value( currentLabel-id().toUpper() ); if ( title.isEmpty() ) { //remove