DBTreeView bean not stretching to bottom

Questions and answers on developing, deploying and using plugins and JavaBeans

DBTreeView bean not stretching to bottom

Postby huber » Tue Oct 14, 2014 11:39 am

Hi All

The DBTreeView bean does not stretch to the bottom in Browser as set in the anchor property. Has anyone else seen that as well? Please see Screenshot.
It does work in SmartClient.

Servoy 7.3.1
Browser: Safari, Firefox (tested)

Regards
Attachments
dbTreeView not stretching to bottom.png
DBTreeView should stretch to bottom
dbTreeView not stretching to bottom.png (83.16 KiB) Viewed 5082 times
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: DBTreeView bean not stretching to bottom

Postby Gabi Boros » Mon Jan 05, 2015 10:34 am

this seems to working fine in the tree sample (servoy_sample_treeControl) shipped with Servoy.
can you provide us a sample where it is not working ?
Gabi Boros
Servoy
Gabi Boros
 
Posts: 404
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: DBTreeView bean not stretching to bottom

Postby huber » Mon Jan 05, 2015 12:42 pm

Hi Gabi

Found out why it did not stretch. I have this line of code
Code: Select all
elements.dbTreeView.setSize(200, 700);

which is overriding the DBTreeView anchors settings in Web Client (set to TOP, BOTTOM, LEFT). It does though not override the settings in Smart Client. Therefor behaves differently in Smart Client and Web Client.

I need this line to remove the vertical and horizontal sliders. It's the only way I found to suppress (remove) the DBTreeView sliders. I would love to have a better way to do that. Any hint?

To make the DBTreeView stretch to the bottom on Web Client, I increased the height value.

Gabi Boros wrote:this seems to working fine in the tree sample (servoy_sample_treeControl) shipped with Servoy.
can you provide us a sample where it is not working ?


Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: DBTreeView bean not stretching to bottom

Postby mboegem » Mon Jan 05, 2015 5:11 pm

Robert,

can't you calculate and set the height when you attach a method to the 'onResize' event?
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1757
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: DBTreeView bean not stretching to bottom

Postby huber » Tue Jan 06, 2015 9:36 am

Marc,

Thanks for your hint. Yes, I could do what you suggest. I made it easy and used 1200 for height, assuming that's the biggest vertical resolution of our customers displays. May be except Retina Displays of course :-) Do you know what they report back when asking about resolution within Servoy?

I would like to see properties for controlling the vertical/horizontal sliders though, as using above mentioned statement is only a hack (the one we know to suppress sliders on DBTreeView). But of course this hack has no charme as french (and swiss ;-) say.

Regards and a good start into 2015,

mboegem wrote:Robert,

can't you calculate and set the height when you attach a method to the 'onResize' event?
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: DBTreeView bean not stretching to bottom

Postby mboegem » Tue Jan 06, 2015 11:45 am

huber wrote:May be except Retina Displays of course Do you know what they report back when asking about resolution within Servoy?

No exception here.
Although the technical size for a MacbookPro retina is 3840 x 2400, in my case I selected 1920 x 1200 to be the display size.
The latter is the one you will get reported.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1757
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: DBTreeView bean not stretching to bottom

Postby huber » Tue Jan 06, 2015 12:51 pm

Thanks, that's what I thought but was not sure about.

mboegem wrote:
huber wrote:May be except Retina Displays of course Do you know what they report back when asking about resolution within Servoy?

No exception here.
Although the technical size for a MacbookPro retina is 3840 x 2400, in my case I selected 1920 x 1200 to be the display size.
The latter is the one you will get reported.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest