Font Size Rendering Messed Up in 6.0.1 (?)

Forum to discuss the Web client version of Servoy.

Font Size Rendering Messed Up in 6.0.1 (?)

Postby bobcusick » Thu Nov 03, 2011 5:22 pm

Capture.JPG

I'm going a little crazy at the moment (ok, ok - so I'm a little crazy ALL the time) - but I'm not having any luck with changing the size of a HTML AREA's text.

I'm using Servoy styles:

label, button, field, combobox, check, radio {
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 11pt;
}

field.nobordersmaller {
border: 0px solid;
font-size: 9pt;
}

So far, so good. It works fine in the Smart Client, but doesn't change in the Web Client (image attached).

I've also tried to modify the HTML in the global variable that is displaying by using straight CSS (which has worked in previous versions) - but still no luck.

Can anyone point me in the right direction? (I need this for a system that is going into beta early next week!!)
You do not have the required permissions to view the files attached to this post.
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby lvostinar » Thu Nov 03, 2011 5:54 pm

If I try a small example, seems to work well. What happens if you put some simple text in there ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby bobcusick » Thu Nov 03, 2011 6:06 pm

I put this text in - same result:

Code: Select all
<html><head></head><body>
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<td><b>TEST</b></td><td>Some simple text</td></tr>
</table></body></html>


This is in a global field - with the styleclass set to "nobordersmaller" (as described above)

EDIT: It's the same regardless of the browser used. I'm testing on IE9 and Firefox 7 - on Windows 7, SP1 - Java 1.6.0_27
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby bobcusick » Thu Nov 03, 2011 6:12 pm

Something interesting - if I make it a TEXTAREA - the text is displayed in the correct size.
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby bobcusick » Thu Nov 03, 2011 6:20 pm

If I put:

Code: Select all
style="font-size:10px;"


Example:

Code: Select all
<td valign="top" width="75%" style="font-size:10px;">


As part of the <td> - then I can get it to work - but the STYLE should work - right?
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby jcompagner » Fri Nov 04, 2011 1:01 pm

i guess we need a small sample to look at the generated dom to see where the styles are and why some are overwriting others or not being applied.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby lvostinar » Fri Nov 04, 2011 2:19 pm

bobcusick wrote:If I put:

Code: Select all
style="font-size:10px;"


Example:

Code: Select all
<td valign="top" width="75%" style="font-size:10px;">


As part of the <td> - then I can get it to work - but the STYLE should work - right?


Problem is the default style (of Servoy) will be applied to td element, and not field style. Please open a case for this.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Font Size Rendering Messed Up in 6.0.1 (?)

Postby bobcusick » Fri Nov 04, 2011 3:08 pm

Created case SVY-1015
User avatar
bobcusick
 
Posts: 126
Joined: Mon Jan 12, 2009 9:13 pm


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 4 guests