Changeset 342 for trunk


Ignore:
Timestamp:
02/03/10 16:06:59 (2 years ago)
Author:
ddangelo
Message:

Minor changes in the positioning of the panel geometry. When using the Centering mode 1, the value of the Position field corresponds to the left upper corner of the panel (incl. the border of the panel).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/src/avango/osg/Panel.cpp

    r328 r342  
    141141    xOffset = Width.getValue() * 0.5f; 
    142142    yOffset = -Height.getValue() * 0.5f; 
     143 
     144    if(ShowBorder.getValue()) 
     145    { 
     146      xOffset += BorderWidth.getValue(); 
     147      yOffset -= BorderWidth.getValue(); 
     148    } 
    143149  } 
    144150 
Note: See TracChangeset for help on using the changeset viewer.