Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Width in Pixel
Width in Pixel [message #1583333] Sun, 25 January 2015 04:42 Go to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 193
Registered: November 2014
Senior Member

Hello there,

if have got a datefield, for which I want to define a fixed width of 150px. If i set the width I just see the datepicker icon but not the textfield.

Without a fixed width it looks like this (default settings):
index.php/fa/20568/0/
index.php/fa/20571/0/

Setting a fixed width looks like this:
index.php/fa/20569/0/
index.php/fa/20570/0/


What am I doing wrong?
Re: Width in Pixel [message #1585307 is a reply to message #1583333] Mon, 26 January 2015 07:31 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 567
Registered: October 2012
Location: Bern, Switzerland
Senior Member
The "Width in Pixel" also includes the label. Try setting that from 0 to a fixed value, or increase the width in pixels.

What I usually do in such cases is to define a constant LABEL_WIDTH which I then return from getConfiguredLabelWidthInPixel() and then in getConfiguredWidthInPixel() I return "LABEL_WIDTH + X" where X is the width I want my field to be. This only works by making the changes in the code, not using the SDK, but after using Scout for a while I find myself using the SDK less and less anyway, so I don't see this as a big drawback.
Re: Width in Pixel [message #1585402 is a reply to message #1585307] Mon, 26 January 2015 08:45 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1250
Registered: October 2011
Senior Member
When it comes to Form layout, Layout Debugger (CTRL-SHIFT-F2) can be useful.

[Updated on: Mon, 26 January 2015 08:50]

Report message to a moderator

Previous Topic:Way to detect table cell clicks?
Next Topic:SmartField and Suggestions while Typing
Goto Forum:
  


Current Time: Mon Dec 11 20:57:57 GMT 2017

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

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