Border ObjectListField

Hello

I can't draw a border around an ObjectListField. The border runs on the right side of the screen, with no visible straight edge. Any ideas on how to solve this problem? I tried a number of things and that you have not had success yet.

This is the code for the for the ObjectListField layout() method:

protected void layout(int width, int height)
{
    super.layout(width, height);
    this.setMargin(5, 5, 5, 5);
    this.setPadding(5, 5, 5, 5);
    this.setExtent(Display.getWidth(), this.getContentHeight());
}

And the display will show as follows:

Thank you

Never mind. A stupid bug. Just changed the call setExtent to:

this.setExtent (Display.getWidth () - 25, this.getContentHeight ());

I was sure that I already tried, but anyway it works now...

See you soon,.

Tags: BlackBerry Developers

Similar Questions

  • OneLineTextField and the border are not displayed correctly together

    Hi all, I need a container by tabs and found the example of the pill buttons that look awesome

    and can function as tabs, (from the article 'Implement advanced buttons, fields, and managers')

    so I use in my application.

    Let me say, they are superb, thank you very much for creating that

    then in one of the 'tabs', I asked

    a field of research (OneLineTextField), followed by the results (ObjectListField) below

    but my field of research is not get drawn properly (see photo)

    seems the border intersect on the right and try to reduce its size

    seems to be ignred. I'm under api 5 with 5.0.0519 Simulator (or is it 591)

    any help on how I can get this to look like, I expect, in addition, also, where is the

    stress being placed in OneLineTextField put, I guess that this is when he thinks a

    misspelled word is there.

    I would like to show a remove this effect and just get to lok more professional

    OneLineTextField searchOneLineTextField = new OneLineTextField ("search for:", "");
    XYEdges padding = new XYEdges (2,2,2,2);
    At the border roundedBorder = BorderFactory.createRoundedBorder (padding, Border.STYLE_SOLID);

    searchOneLineTextField.setBorder (roundedBorder);
           
           
    Add (new LabelField ("screen test"));
    Add (new SeparatorField());
    Add (searchOneLineTextField);

    you are great here, without being able to read through it, I would never get this app for my complete work

    FYI: I had the OneLineTextField from here

    http://supportforums.BlackBerry.com/T5/Java-development/sample-code-scrollable-one-line-text-input-f...

    and the example of "implement advanced buttons, fields and managers" of

    http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

    u blackberry developers are more helpful engineers and sweet, with that I've never dealth.

    I'm waiting for a sarcastic response while I read all these

    positions and never a response brief soaking, great work team.

    your solution worked like a champ

  • How can I fix the color washed out for border to start in Firefox (vs Chrome)?

    I created a web page with a very basic table and border-style: first. Attached picture shows three colors ('red', ' #2CC11F ' and ' #22A8D6 ') of this table, and how they appear on the Chrome vs. Firefox (right) (left).

    The image is a screenshot taken with Firefox and Chrome on the same monitor.

    I tried all combinations of the elements listed in the link here: (http://cameratico.com/guides/firefox-color-management/) and restarted Firefox, every time, but I can't quite simply that it displays only not this border of immediately without looking terrible and washed out.

    A solid border seems okay, if it has to do with the borders of departure specifically (and possibly on the tables specifically).

    So the problem is that Firefox is to choose shades that are too light compared to Chrome?

    I think that you will need to take direct control of the colors of different sides using borders United. For example:

    http://jsfiddle.NET/kr3gdzhd/

  • How to reduce the firefox window border

    I'm trying to get rid of the "border" above the line of tabs in Firefox 36.0 in white.
    I wish that each tab to extend completely to the top of the screen so that when I push my mouse upwards and the screen limits the cursor to move more, he places the cursor on one of the tabs. For now, this puts the cursor over this border, so I then slightly down the mouse to click on the tab. Who is?
    I guess an easy css line that I can add to my Chrome folder exists, but I'm not smart enough to know what it is.
    I'm guessing that this border is a part of the line of tabs, otherwise, it can be the window border.

    Basically, I would like to get the line of tabs in Firefox to be more like Chrome, it's the height of the button red X Windows (minimum space).

    You can try to use a negative top-margin for the #TabsToolbar value in the userChrome.css file
    I'm not on Windows, so it is impossible to check what value works.

    userChrome.css:

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #TabsToolbar { margin-top: -2px !important; }
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

  • Firefox window has a border bottom thick when it should be thin or missing

    I have the latest version of Firefox, and for a while, the lower edge of the window was too thick. Here is a screenshot of the thickness of the border is:
    "< a href ="http://s232.photobucket.com/user/MarkDali/media/Work%20Portfolio/Firefoxborder.jpg.html"target ="_blank">< /a >"

    This screenshot is from when the window is not maximized. When it is, the border is thin, but not completely hidden as it should be. Y at - it all the parameters it would cause? I have several modules and extensions, but not sure if they would cause the extra width.

    Anyone have any suggestions on the best way to fix it? Thank you!

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • text of space reserved and box-sizing: border-box

    Hey guys,.

    I'm on a mac (10.9.3) under FireFox 30.

    I have the old * {box-sizing: border-box ;} thing put in place on my page.} In doing so, my input placeholder text appears, but not in Chrome and Safari.

    When I replace the box numbers on the input to the content box, the placeholder text is displayed.

    I probably wouldn't share the url, but here, you're going to: http://bluescape.jacobdubail.com/ click on search in the nav link to view the entry.

    Thank you
    Jacob

    This entry has a rule of departure of height: 0px.

    When you click the search button, the height remains at zero with box -: border to resize-box but becomes 20px with box-sizing: content-box.

    Is it because zero height is not allowed with content-box or because the script does something different in the two cases? Hmm...

  • Remove the tab Active white border outline FF29?

    Hello

    I want to remove the border from white outline around the active tabs in FF29. I want that it to blend the background as the inactive tabs.

    I have Tab mix plus and restorer of classic theme installed. They fine only would like the transparent border.

    Thank you

    Get it solved

    Thank you

  • strange white border

    My iPhone 6 has now a strange border white rounded edge with a small tab at the bottom. How can I get rid of him? Attached are some pictures. In horizontal view, it is very distracting.

    Is looks like zoom it activated. Go to settings > general > Acessbility > Zoom to turn it off or change the zoom setting full-screen instead of the window zoom. -AJ

  • white border around the screen

    Can someone explain what this white border on my iphone 6, ios 9.3.2?

    Appeared after recharging the phone this afternoon. Did not exist before.

    Thank you!

    Zoom can be enabled. Go to settings > general > accessibility > Zoom to turn it off or change in mode full screen instead of the window zoom.  -AJ

  • How to remove the red border in dotted lines around links?

    On several sites (Facebook, Twitter, Hootsuite, etc.), any link is bounded by a dashed red border. I don't know if inadvertently, I changed a setting, but it has never been like this before and I can't understand how to disable projection dotted border.

    Any help?

    What is a characteristic of one of your add-ons? You could test mode without failure of Firefox? It is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • View my pictures with a black border?

    When you edit a photo, in that it appears a black border that one I find it really increases my photos.

    As I browse through photos in an album, I want to see with the same black border.  I think it improves their and would help me to decide which photos to keep and throw away.

    I can't find a way to use a black border, it is just white.

    This is not a feature of Photos - suggests to Apple - http://www.apple.com/feedback/photos.html

    LN

  • How can I change the color of the bookmarks bar and the border of Firefox?

    My bookmark toolbar and the border has been a nice dark orange color. It changed to a blue baby and I want to go back to orange.

    I didn't do anything he changed by itself.

    Do you have an installed character?

  • Mysterious black border (only) at the bottom of the first screen iPhone

    I have an iOS application that I wrote in 2011, and I'm trying to upgrade to the latest iOS and devices.  I have a thick black border at the bottom of the first screen of my request, for most combinations Device/Simulator and iOS. This is * not * a black border at the top and at the bottom of the screen problem, who has been treated exhaustively in the forums.

    There is only a single black border at the bottom of the screen. Also, the border is only broadcast on the first screen of my request, that has buttons to go to the rest of the application. Even if I navigate to the first screen of my request, somewhere inside the application, the border becomes visible. There is no black border in the other forms in the application, apart from the first screen.

    It is * not * seems to be a launch image problem. I have a picture of launch, [email protected], and the launch image works fine. Here are the setups I get or don't get the black border:

    iPhone 4S (iOS 9.2) Simulator - without black border

    iPhone 5 (iOS 9.2) simulator - black border

    iPhone 5 (iOS 8.1.3) device - without black border

    iPhone (iOS 9.2) 5s simulator - black border

    iPhone 5 s (iOS 9.1) peripheral border - black

    iPhone 6 sec more (iOS 9.2) Simulator - black border

    iPad 2 (iOS 9.2) Simulator - without black border

    iPad (iOS 9.2) air Simulator - no black border

    iPad 2 Air (iOS 9.2) Simulator - without black border

    Pro Simulator (iOS 9.2) iPad - thick black border all around the application window

    retina Simulator (iOS 9.2) iPad - without black border (at the bottom of the screen)

    I tried everything I could think of, but nothing seems to work.

    Hello sandpjain2,

    Everything you wrote in 2011 will likely be rewritten using the automatic formatting.

  • Satellite Pro 6100: black border to the right of the screen

    After a new installation with windows xp when I star tup I have a black border (1.5 cm) to the right of my screen.
    After the beginning and the end of the screen saver, I have a full screen.
    but when my laptop started again I have this black border again.
    I have a satellite Pro 6100.

    Management information
    System
    Model = laptop
    Manufacturer = TOSHIBA
    Serial number = 0000000000
    UUID = ffffffff-ffff-ffff-ffff-ffffffffffff
    BIOS Version = Version 1.90

    OPERATING SYSTEM
    Caption = Microsoft Windows XP Professional
    Version = 5.1.2600 Service Pack 2

    CENTRAL PROCESSING UNIT
    Index = 1
    Manufacturer = GenuineIntel
    Name = Mobile Intel (r) Pentium (r) 4 - M CPU 1.70 GHz
    Version = model 2 Stepping 7
    Max clock speed = 1694
    Socket designation = uFC - PGA Socket

    Display
    Index = 1
    Horizontal resolution = 1024
    Vertical resolution = 768
    Chip Type =
    The RAM size =

    Very strange problem! Can you please tell us more about this problem? I assume that you have installed the OS on your own. Since when you noticed this weird display problem?

    Have you noticed this immediately after installing the OS (without driver)? Did you install the display driver on Toshiba support page?

  • 7520 pictures to print (4 x 6) with a wide border on the left side

    I am trying to print 4 x 6 photos and they all come with a wide border on the left side of the photo.  I tried also to airprint from my iphone and the same thing happens.  Any suggestions?  I just got the printer 2 days ago.

    PS. I made sure the settings are on photo tray, size 4 x 6, tried without borders and with border and tried to print in protrait and landscape and still the same problem.

    Discover the printer was not lined up and would not align little matter what I have tried or tried hp representative.
    I returned it to best buy and got a good new one and until then.
    Thank you

Maybe you are looking for