Page 1 of 1

Window size with imagedim

Posted: Mon Jul 08, 2013 08:54
by Irydion
Hello,

I'm not sure wether I should post this here or in the "skins and themes" topic, so feel free to move it if it's in the wrong place.

I'm using Cegui 0.7.9 with a custom renderer and I have a widget defined in looknfeel with its dimensions set like this :

Code: Select all

<Area>
   <Dim type="LeftEdge">
      <AbsoluteDim value="0" />
   </Dim>
   <Dim type="TopEdge">
      <AbsoluteDim value="0" />
   </Dim>
   <Dim type="RightEdge">
      <UnifiedDim scale="1" offset="0" type="RightEdge" />
   </Dim>
   <Dim type="Height">
      <ImageDim imageset="my_imageset" image="image1" dimension="Height" />
   </Dim>
</Area>


The problem is when I create a widget with this look, it's size is [[1.0, 0.0] [1.0, 0.0]] (UVector2), so its height is higher than image1 from my_imageset.
I'm using createWindow from the windowManager to create the widget (passing 2 args, the type and the name of this widget).
Is this the normal behaviour of createWindow ? Is there another to set the widget size from a imagedim in the looknfeel ?