Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Strange rendering of scrollbars(The containers scrollbars are not rendered as expected. They are very ugly toolbars)
Strange rendering of scrollbars [message #1448703] Mon, 20 October 2014 10:06 Go to next message
Vinicius Souza is currently offline Vinicius SouzaFriend
Messages: 4
Registered: October 2014
Junior Member
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 Crying or Very Sad . It seems to be some rendering issue. I attached an image showing it.

Does anybody have a solution?
Re: Strange rendering of scrollbars [message #1448793 is a reply to message #1448703] Mon, 20 October 2014 13:01 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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 #1448862 is a reply to message #1448793] Mon, 20 October 2014 14:48 Go to previous messageGo to next message
Vinicius Souza is currently offline Vinicius SouzaFriend
Messages: 4
Registered: October 2014
Junior Member
So, is this the default behavior of the Sirius containers? Or is it some problem with the Eclipse 4 rendering?
Re: Strange rendering of scrollbars [message #1448866 is a reply to message #1448862] Mon, 20 October 2014 14:55 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Le 20/10/2014 16:48, Vinicius Souza a écrit :
> So, is this the default behavior of the Sirius containers? Or is it some
> problem with the Eclipse 4 rendering?

This is the default behavior of the Sirius containers.
You will have the same rendering on Eclipse 3 or 4, and on Linux, Mac OS
or Windows.

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 #1448883 is a reply to message #1448866] Mon, 20 October 2014 15:22 Go to previous messageGo to next message
Vinicius Souza is currently offline Vinicius SouzaFriend
Messages: 4
Registered: October 2014
Junior Member
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.
Re: Strange rendering of scrollbars [message #1450184 is a reply to message #1448883] Wed, 22 October 2014 07:17 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
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 #1727749 is a reply to message #1450184] Sat, 26 March 2016 18:00 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
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.
index.php/fa/25427/0/
Any solution ?

Thanks,
Parsa
Re: Strange rendering of scrollbars [message #1728058 is a reply to message #1727749] Wed, 30 March 2016 16:21 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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
Previous Topic:Deploy the "Ecore Model Project" and "Viewpoint Specification Project"
Next Topic:Problem with listener
Goto Forum:
  


Current Time: Wed Apr 24 13:57:19 GMT 2024

Powered by FUDForum. Page generated in 0.03700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top