|Re: Change Position of ContextButtonPad [message #1798969 is a reply to message #1798967]
||Wed, 28 November 2018 07:32
| Felix Buehler
Registered: July 2017
I solved the Issue by adjusting width and height of the ContextButtonPad.
int x = context.getPictogramElement().getGraphicsAlgorithm().getX();
int y = context.getPictogramElement().getGraphicsAlgorithm().getY();
data.getPadLocation().setRectangle(x + 5, y, 5, 120);
By reducing the width and increasing the heigth, the buttons seem to be forced into the vertical, which is good enough for me.
My initial fault was to not set x and y correctly, so the pad wouldn't display.
Here's the result:
Thanks for your help!
[Updated on: Wed, 28 November 2018 07:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03441 seconds