Not sure if this is a bug or not, but I was unable to scale/resize the Image of ImageButtons through any method on the Table, Row, Cell, the ImageButton or even the Image itself. I ended up changing the Layout() method of Image from
imageWidth = size.X;
imageHeight = size.Y;
to
imageWidth = size.X * scaleX;
imageHeight = size.Y * scaleY;
(Line 116 & 117)
and then it worked as expected.
Is there another way I missed or should this be made into a pull request?
Also the overloaded constructor for ImageButtons taking three IDrawables suggests that the third IDrawable is to be displayed when the mouse hovers over it (ImageOver). But instead it gets set to the ImageChecked property, which I honestly don't know when it would be displayed, but it's certainly not what I expect or need.
Not sure if this is a bug or not, but I was unable to scale/resize the Image of ImageButtons through any method on the Table, Row, Cell, the ImageButton or even the Image itself. I ended up changing the Layout() method of Image from
imageWidth = size.X;imageHeight = size.Y;to
imageWidth = size.X * scaleX;imageHeight = size.Y * scaleY;(Line 116 & 117)
and then it worked as expected.
Is there another way I missed or should this be made into a pull request?
Also the overloaded constructor for ImageButtons taking three IDrawables suggests that the third IDrawable is to be displayed when the mouse hovers over it (ImageOver). But instead it gets set to the ImageChecked property, which I honestly don't know when it would be displayed, but it's certainly not what I expect or need.