[mapguide][MG244][Modified] GLOB: Truncated right click menu within layer pane.

Alain Lebatard alain.lebatard at autodesk.com
Wed Apr 19 17:31:39 EDT 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG244

Type:
Defect

Artifact ID:
MG244 (GLOB: Truncated right click menu within layer pane.)

Modified by:
Alain Lebatard
alainlebatard (alain.lebatard at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

-- Target milestone set to new value:
1.0.0
-- Resolution Description set to new value:
The root of the problem was that menu width was incorrectly calculated. Because of this some menu options couldn't fit in one line, overflowing on the following line. When this happens the menu text is truncated at the bottom because the menu height calculation assumes that each option fits in one line, and the menu becomes too short vertically to display all the options.

The width was incorrect because of a couple problems: First, the HTML element used to calculate the metrics of a string was not using the same font as the menu itself. Unfortunately the font specification was in a css file which is not localizable. Because fonts depends on the locale, the font specification moved from the css file to the template files were a context menu is created (only template files are localizable). Also, even with a correct metrics calculation, the code was not leaving enough additional space horizontally (for margins and icon) still causing some text to overflow on the following line.



-- Artifact Status changed:
Old value:
New
New value:
Resolved
-- Resolution set to new value:
Submitted



---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list