|
Re: Strange rendering of scrollbars [message #1448793 is a reply to message #1448703] |
Mon, 20 October 2014 13:01 |
|
Hello,
Le 20/10/2014 14:19, Vinicius Souza a écrit :
> When I am inside a container node and it does not fit its contents, strange scrollbars appears. It is not the operating system default scrollbar and looks very ugly :cry: . It seems to be some rendering issue. I attached an image showing it.
>
> Does anybody have a solution?
>
The Sirius editparts which displays those scrollbars inherit from
org.eclipse.gmf.runtime.diagram.ui.figures.ShapeCompartmentFigure which
creates a
org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane
with its org.eclipse.gmf.runtime.draw2d.ui.figures.ListScrollBar.
You could choose to implements some specific scrollbars (or reuse other
kind of scroll bars from draw2d) but you will have to provide your own
editparts and figures to change this behavior.
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Re: Strange rendering of scrollbars [message #1450184 is a reply to message #1448883] |
Wed, 22 October 2014 07:17 |
|
Hello,
The auto-size is the default behavior at the creation time. A container
keeps its auto-size until it's resized manually.
Regards,
On 10/20/2014 05:22 PM, Vinicius Souza wrote:
> Ok. So, is there a way to make the element auto-size every time its
> contents does not fit its size? This way, the scrollbar won't appear. I
> know the "auto-size" button from the diagram toolbar, but sometimes it
> stops auto-sizing.
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Strange rendering of scrollbars [message #1728058 is a reply to message #1727749] |
Wed, 30 March 2016 16:21 |
|
Hi Parsa,
Le 26/03/2016 19:00, Parsa Pourali a écrit :
> Hi,
>
> I'm having the same problem. Attached is an image showing that when I create a container in another container, it will not get auto sized or auto fit to the parent container.
>
> Any solution ?
>
> Thanks,
> Parsa
>
IMO, this is related to your other post on the auto-fit or regions and
the size expression in the VSM.
This thread deals with the GMF/Draw2D scrollbar rendering (in diagram
containers) which is the same on MacOS, Windows and Linux but is
different than the scrollbar displayed in Eclipse views (system dependent).
Regards
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.05676 seconds