Project

General

Profile

Bug #5536

Layout issue of help window

Added by Ludwig Theunis over 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Start date:
26/09/2012
Due date:
% Done:

100%

Estimated time:
Complexity:
Piece of cake

Description

When calling a help page, a scroll bar is shown even if the text would fit the help window. See attached image...

In Chamilo 2.x this was ok. Checked some code.

In the old /common/libraries/resources/javascript/help.js script a var percentage_height to calculate the window height. In the new javascript is var percentage_height is taken out but not completely. This causes this behaviour.

As you can see in the new code on line 19 and 22 the var percentage_height is still existing.


16 //mozilla height fix
17 if($.browser.mozilla)
18 {
19 calculate_height(percentage_height);
20 $(window).resize(function()
21 {
22 calculate_height(percentage_height);
23 });
24 }
25 return false;

To fix the problem you just have to delete the var here too.


16 //mozilla height fix
17 if($.browser.mozilla)
18 {
19 calculate_height();
20 $(window).resize(function()
21 {
22 calculate_height();
23 });
24 }
25 return false;

And it is working like before but without the var percentage_height


Files

prtScreen.jpg (80.2 KB) prtScreen.jpg Ludwig Theunis, 26/09/2012 18:35

History

#1

Updated by Ludwig Theunis over 8 years ago

The attachment

#2

Updated by Ludwig Theunis over 7 years ago

  • Assignee set to Ludwig Theunis
  • Target version changed from LCMS 3.1 to LCMS 4 Beta
  • % Done changed from 50 to 100

Also available in: Atom PDF