Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 10:48:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Display problem in VisualJS 3.0  (Read 937 times)
ludwigl
Sr. Member
****
Posts: 47


View Profile
« on: August 02, 2010, 04:46:59 AM »

Hello,

first I would like to congratulate you to the enhancements that are delivered in the new development environment. The improvements of the editor are great and I will switch back to edit my source code in this environment.

Unfortunately I detected a small problem in the synchronization of the line numbers and the code. In each row, in which angle brackets "{}" are used, the line height of the code increases and causes the code and the line numbers to loose synch. Please also see the attachment.

Thanks in advance,

Ludwig
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: August 02, 2010, 05:33:30 AM »

I need your browser info.
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #2 on: August 02, 2010, 05:46:19 AM »

Hi,

I am using Firefox 3.6.8.

With best regards,

Ludwig
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: August 02, 2010, 05:17:32 PM »

I tested in Firefox 3.6.8. But cant find the sysnch. I dont know the reason.

Is your code from the latest version from svn?
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #4 on: August 03, 2010, 12:43:46 AM »

Hello linb,

it seems like the problem is related to the default monospace font which is defined in the Firefox font settings.
The problem occurs whenever I use the font "Courier New" as monospace font. When I change the font to "Courier" the synch problem disappears.

Therefore I consider the problem as solved ;-).

With best regards,

Ludwig

PS: Are you aware that the default.css file in the VisualJS/CSS directory is called defalut.css ?

Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #5 on: August 05, 2010, 06:25:52 AM »

Hi Linb,

sorry to bother you again with this issue, but due to your modifications in <>\VisualJS\codemirror\css\jscolors.css R916
my local workaround of this issue does not work again.

My solution was to set the default monospace font of Firefox to another font than "courier New".

This is now ignored due to the following changes:

.editbox {
  margin: 4px;
  padding: 0;
  font-family: "courier New", courier, monospace;
  font-size: 12px;
  line-height:16px;
  color: #000;
}

Now Firefox uses "Courier New" again and not my modified default monospace font and I have the problem again.

I think it is a specific Firefox problem, which can currently only be avoided by not using "Courier New" font as monospace font.

Would you mind to set the font-family back to monospace?

With best regads,

Ludwig

PS: I see that you are currently working on this problem, maybe you find a better solution than setting the font-family back to monospace
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #6 on: August 05, 2010, 05:26:37 PM »

I updated a final version. check it out please!
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #7 on: August 06, 2010, 12:45:42 AM »

Hi linb,

I confirm that the fix works, but would like to suggest that you change the font-family in jscolor.css
back to monospace.

With this setting the configuration of the font can be done in Firefox and it is not necessary to update the css-files manually in case a different font is required.

With best regards,

Ludwig
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!