Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » how to change the width of MArea element(change the width of MArea element)
how to change the width of MArea element [message #871412] Sun, 13 May 2012 14:08 Go to next message
ishk gunathilake is currently offline ishk gunathilake
Messages: 27
Registered: April 2012
Junior Member
hi all,
i created a rcp app using eclipse 4.2M7. I add some elements as attach image.but i cant change the width of the MArea using css. here is my css style

.MArea{
background-color:#6b6967;
width:20px;
}

the width:20px is not working.

regards

  • Attachment: e4app.png
    (Size: 120.20KB, Downloaded 92 times)
Re: how to change the width of MArea element [message #871420 is a reply to message #871412] Sun, 13 May 2012 15:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5312
Registered: July 2009
Senior Member
You can't control widths using CSS. They are controlled by the layout in
this case you should look at the model and modify the container data.

Tom

Am 13.05.12 16:08, schrieb ishara gunathilake:
> hi all,
> i created a rcp app using eclipse 4.2M7. I add some elements as attach image.but i cant change the width of the MArea using css. here is my css style
>
> MArea{
> background-color:#6b6967;
> width:20px;
> }
>
> the width:20px is not working.
>
> regards
>
>
Re: how to change the width of MArea element [message #871433 is a reply to message #871420] Sun, 13 May 2012 16:57 Go to previous messageGo to next message
ishk gunathilake is currently offline ishk gunathilake
Messages: 27
Registered: April 2012
Junior Member
hi tom,
how do i modify the container data, can you plz give some example code. attachment shows the Application.e4xmi of my project.

regards
  • Attachment: model.PNG
    (Size: 17.50KB, Downloaded 98 times)
Re: how to change the width of MArea element [message #871452 is a reply to message #871433] Sun, 13 May 2012 20:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5312
Registered: July 2009
Senior Member
well on the right side of the editor there should be a container data
field not?

Tom

Am 13.05.12 18:57, schrieb ishara gunathilake:
> hi tom,
> how do i modify the container data, can you plz give some example code. attachment shows the Application.e4xmi of my project.
>
> regards
Re: how to change the width of MArea element [message #871652 is a reply to message #871452] Mon, 14 May 2012 16:18 Go to previous messageGo to next message
ishk gunathilake is currently offline ishk gunathilake
Messages: 27
Registered: April 2012
Junior Member
Thomas Schindl wrote on Sun, 13 May 2012 16:15
well on the right side of the editor there should be a container data
field not?

Tom

Am 13.05.12 18:57, schrieb ishara gunathilake:
> hi tom,
> how do i modify the container data, can you plz give some example code. attachment shows the Application.e4xmi of my project.
>
> regards



but i couldnt see any field which i can define width or height to the Area element.i attached the image.do i have to define another element inside area
Re: how to change the width of MArea element [message #871682 is a reply to message #871652] Mon, 14 May 2012 17:15 Go to previous messageGo to next message
ishk gunathilake is currently offline ishk gunathilake
Messages: 27
Registered: April 2012
Junior Member
hi tom,
i could see the container data on area element. but how do i define width there?
regards
Re: how to change the width of MArea element [message #871947 is a reply to message #871682] Tue, 15 May 2012 07:35 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5312
Registered: July 2009
Senior Member
It is a relative value similar to what you have in 3.x

Tom

Am 14.05.12 19:15, schrieb ishara gunathilake:
> hi tom, i could see the container data on area element. but how do i
> define width there?
> regards
Previous Topic:Eclipse e4 Tools Bridge for 3.x (Incubation) not installable on M7 ?
Next Topic:Testing Eclipse 3.7 RCP app in Eclipse 4.2 - NPE
Goto Forum:
  


Current Time: Mon Sep 15 09:29:26 GMT 2014

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

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