PDA

View Full Version : 4.0.5 font handling different than 4.0.3


guyr
10-08-2007, 02:19 PM
I saw that 4.0.5 had been released so downloaded it and started working with it. I noticed some font issues I was sure I had already fixed, so I looked at our production site (which uses 4.0.3) and sure enough, the font problems weren't present. Fortunately, I still have 4.0.3 installed on my development system, so I am able to switch back and forth by just renaming directories.

I'm attaching two JPEGs that demonstrate this problem. With 4.0.3, the selected page "SLA Reporting" is shown in bold, and the top navigation items are shown in their entirety. In 4.0.5, SLA disappears when selected; I know from when I was developing that page that this happens because the rendered text gets too large for the space that OL allots for it. Also, notice that the top navigation items are cut off on the bottom.

Here is the code that renders the SLA Reporting text:

<simplelayout name="selector_layout" axis="x" spacing="4" inset="5"/>
<text name="map" fontsize="14" fontstyle="bold" fgcolor="${black}" valign="middle" resize="true" onclick="parent.changeView('map')">Map</text>
<view valign="middle" bgcolor="${masergy_blue}" width="2" height="15"/>
<text name="sla" fontsize="14" fgcolor="gray" valign="middle" resize="true" onclick="parent.changeView('sla')">SLA Reporting</text>
<view valign="middle" bgcolor="${masergy_blue}" width="2" height="15"/>
<text name="help" fontsize="14" fgcolor="gray" valign="middle" resize="true" onclick="parent.changeView('help')">Help</text>
<method name="changeView" args="show">


The changeView method just changes the fgcolor (between black and gray) and fontstyle (between bold and plain) when an item is clicked.