English > Scripts and Templates
Probable bug with text alignment in tabs of skins
goddert:
Hi,
developing a skin with tabs I found a probable Bug with the text alignment in tabs (description and comments).
Included I have a very simple skin with two tabs. The first tab presents a misalignment of the text. The second tab however presents a correct formatting of the text. The misalignment doesn't vanish neither with a refresh nor with a restart of PVD. The same misalignment (same column width) PVD shows regulary with normal skins without tabs during daily operation (usually in the description field), but it is more casual and not easily reproducable. In the sample skin however it is always present.
The sample skin contains nearly all borders of sections and columns to reveal the structure.
Thanks
--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<xml>
<pvd_skin_movie>
<skinname>PVD Bug 2</skinname>
<version>1.0.0.0</version>
<author>goddert</author>
<description>Skin with bug in tabs</description>
<section space="15">
<row>
<column valign="top" space="15" width="35%">
<section>
<color>$000000</color>
<border shape="none"/>
<row>
<column valign="top" halign="center">
<section space="5">
<color>$ffffff</color>
<border shape="none"/>
<row>
<column space="5">
<poster autosize="true"/>
</column>
</row>
</section>
</column>
</row>
</section>
</column>
<column valign="top" halign="center">
<section>
<row>
<column valign="center" halign="left">
<section permanent="true">
<row>
<column valign="top" halign="left">
<origtitle>
</origtitle>
</column>
</row>
</section>
</column>
</row>
<row>
<column valign="center" halign="left">
<pagecontrol>
<tab>
<caption>Description</caption>
<row>
<column>
<description>
</description>
</column>
</row>
</tab>
<tab>
<caption>Critics</caption>
<row>
<column>
<comment>
</comment>
</column>
</row>
</tab>
</pagecontrol>
</column>
</row>
</section>
</column>
</row>
</section>
</pvd_skin_movie>
</xml>
--- End code ---
rick.ca:
It works fine for me in both 0.9.9.21 and 1.0.2.2, Win 7 x64. Maybe a screenshot would help.
goddert:
You're right. I should have thought before to include some screenshot.
1. wrong wrapped text with example skin (first tab)
2. correct wrapped text with example skin (second tab)
3. wrong wrapped text with another skin (without tabs). This wrong wrapped text is corrected only by changing the movie.
System is Windows 7 64bit and PVD version 1.0.2.2. The last one I had also with version 0.9.9.21. Tomorrow I'll test it on a XPSP3 32bit. But I don't think it depends on the Windows version or even the graphic card.
Thanks
rick.ca:
Okay, I do see this occasionally—in the same way you mentioned originally. It happens often when changing skins, and is usually fixed by changing movies and/or expanding and collapsing all fields (I'm not sure, but maybe only collapsible fields are affected), but sometimes requires a restart. But it's not happening with your tabbed skin for me. Something else must be different...
To check if it has something to do with the configuration, rename your pvdconf.ini file, then start PVD. Test to see if the behaviour is different with the default configuration. If that makes no difference, test the behaviour with a new database. (When done, you can replace the new pvdconf.ini with the original one.)
Why do you think it's not related to the graphics card? You're probably right—I've never seen any difference after updating my driver.
goddert:
You were right. Cancelling the pvd.ini resolved the problem. Thank you Rick.
I'm a bit annoyed with myself that I didn't think about this before. Maybe because I didn't associate the settings in configuration file to the skin visualization. First I had some doubt not seeing the problem on an XPSP3 system today. The graphic card I excluded from the start as it usually works on a pixel level (also because as you can see clearly in the screenshots that the column width of the description is changing which, as a consequence, makes going wrong the text wrapping)
I try to nail down which setting is provoking the error and report it.
Thanks again
Navigation
[0] Message Index
[#] Next page
Go to full version