ComboBox set width problem

Hey all,
Has anyone experienced this, when i give a preferred width to my comboBox, and i use it for the first time, the drop down is still the same size.
When the comboBox is again pressed, the dropdown comes with the given size.
Please see the link for demo image :
[http://s13.postimg.org/6954yibvr/Error.jpg]
Regards,
Abhi

The ComboBox tutorial example with setPrefWidth() works as expected.
http://docs.oracle.com/javafx/2/ui_controls/combo-box.htm#BABJCCIB
Please post your code which shows your issue.

Similar Messages

  • Building Site CSS Safari Problem, no set width?

    Strange problem in Safari, i have a image holder and a description for the image below both floating left, done as a class so you can have another one along side with a different image.
    The image holder doesn't have a set width because the image that goes into it will be varying widths.
    This for some reason does not work in Safari, see here
    Its bizarre because it works fine in IE,FF etc
    Can Safari only render using a set width? Or is there a hack around it?
    Any ideas?

    Here's the thing. I see some items which could be causing
    problems. However, we need to fix the basics before going too far
    into this or you will end up with more problems than when you
    started.
    Run your pages through the validator (
    http://validator.w3.org/ ) and
    fix those errors first. Your problems here seem to be identical on
    both pages. For instance, you have an extra head tag, you have
    <style> tags in the middle of your document (these are only
    allowed in the head), etc.
    Go through those and once you have eliminated the errors from
    the validation we can solve your problems with the
    positioning.

  • An odd set of problems - full re-install fail

    Hello helpful computer people
    I have a funny set of problems which has culminated in me wanting to fully reinstall operating software. I will explain why I want to do this in a minute, but the main problem is that I can't manage to do it! When I boot up my mac from the startup disk I get a messed up display. The information is obviously all there on the screen, but it's displayed in weird jagged lines. This means that I can't make out where to click to continue with the installation. I also though that the disk drive was being particularly clunky sounding, but could be imagining that.
    You can see what I mean here: http://www.flickr.com/photos/33449131@N02/7160853520/in/photostream
    The problems up to this point have been really odd, with applications one by one stopping responding and finder crashing. Also the computer will sometimes not go to sleep when closed and the fan will go a bit mad. I have had particular problems with browsers crashing and generally the computer grinding to a halt with nothing but the off button having any effect.
    I have tried loads of stff - reseting P ram, repairing disks, running cleanups on Onyx, removing programmes etc.
    I want to go back to square one because things are getting a bit messy, it won't let me reinstall Safari becuase it thinks it's already there, but It doesn't show up on search!
    I tried reinstalling Snow Leopard but realised that didn't really do much and am now going down the route of putting the original install disk in. I bought there computer second hand btw, so there is a possibility that the install disks are wrong, although unlikely because the guy was trustworthy.
    Thanks in advance for all your help
    Tim

    Yep.
    Just want to clear up the fact that the original problems encountered were not display related and it only happens when I try to do that one specific task. The computer is working ok now and I am writing this message from it.
    My display spec:
    NVIDIA GeForce 8600M GT:
      Chipset Model:    GeForce 8600M GT   
      Type:    GPU
      Bus:    PCIe
      PCIe Lane Width:    x16
      VRAM (Total):    128 MB
      Vendor:    NVIDIA (0x10de)
      Device ID:    0x0407
      Revision ID:    0x00a1
      ROM Revision:    3175
      Displays:
    Color LCD:
      Resolution:    1440 x 900
      Pixel Depth:    32-Bit Color (ARGB8888)
      Main Display:    Yes
      Mirror:    Off
      Online:    Yes
      Built-In:    Yes
    Display Connector:
      Status:    No Display Connected

  • My home button is working intermittantly. Have Restored setting. still problem. Any ideas?

    my home button is working intermittantly. Have Restored setting. still problem. Any ideas?

    Did you actually restore the iPad? Or just restore settings?
    If you haven't "restored" the iPad...
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software
    If a restore doesn't work...  >   Apple - Support - iPad - Hardware Service

  • Set Width for a column, Merge cells in Excel

    Hi all,
    I am using jacob.dll to open and modify an Excel file. And I am stucking in below trouble:
    Dispatch workbook = Dispatch.invoke(workbooks, "Open",
              Dispatch.Method,
              new Object[]"D:\\02042005.xls",
              new Variant(false), new Variant(false)},
              new int[1] ).toDispatch();
    Dispatch sheet = Dispatch.get(workbook,"ActiveSheet").toDispatch();
    System.out.print(sheet.get(sheet,"Name") + "\n");
    Dispatch a1 = Dispatch.invoke(sheet, "Columns",
              Dispatch.Get,new Object[] {"A:A"},
              new int[1]).toDispatch();     
    Dispatch.put(a1,"Width","8");
    Error message is that I can not set value Width for object RANGE! so strange... Is there any ways to set Width for a certain column?
    Any help is appreciated.
    Regards,
    YukiNguyen

    Hi all,
    :) At last I can work done with Jacob, so great :) take me all yesterday to find more... just hope this post can help someone like me save one day to find how :)
    //Get Range
    Dispatch orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"A1:I1"},new int[1]).toDispatch();
    //Get Column I & set Width
    ocolumn = Dispatch.invoke(orange,"EntireColumn",Dispatch.Get,new Object[]{"I"},new int[1]).toDispatch();
    Dispatch.put(ocolumn,"ColumnWidth","60");
    //Merge cell
    orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"C12:D12"},new int[1]).toDispatch();
    orange.call(orange,"Merge");
    Is it exciting, huh? :) I am trying to set HorizontalAlignment... beginner always stuck in somethings :)... but I have learnt so much
    Regards,
    YukiNguyen

  • How to set width of cfgid in percentage?

    I have to make the cfgrid compatible irrespective of screen size. But it is not taking width in perecntage(giving error : Attribute vallidation error, height/width can not be given in percentage.)
    I put the cfgrid inside a div and set width of the div as 100%, but it has no effect on the cfgrid.
    Can anyone please give me a solution??
    I will be thankfull towards any helpfull suggestion.

    Then you have to find a way to get the browser to send information about screen size to ColdFusion. One way to do it is by means of AJAX. Another, in my opinion much simpler way, is to get Javascript to store the screen size as a cookie, and then to get ColdFusion to read the cookie. I was thinking of something like this
    <script type="text/javascript">
    var browserWidth = screen.width;
    var browserHeight = screen.height;
    var expiryDate=new Date();
    /*set expiry date tomorrow*/
    expiryDate.setDate(expiryDate.getDate()+1);
    document.cookie= 'browserWidth='+browserWidth+',browserHeight='+
                                browserHeight+',expires='+expiryDate;
    </script>
    <cfset percentWidth = 90>
    <cfif isDefined("cookie.browserWidth")>
        <cfset browserWidth = cookie.browserWidth>
    <cfelse>
        <cfset browserWidth = 800>
    </cfif>
    <cfset gridWidth = int(percentWidth*browserWidth/100)>
    <cfform>
    <cfgrid format="html" name = "myGrid" width="#gridWidth#">
    </cfgrid> 
    </cfform>

  • Oracle to Mysql character set conversion problem!!! PLZ IGNORE

    Hi Experts,
    I have created a database link from Oracle 10g to Mysql 5.
    I have installed Oracle Gateway 11g for this purpose.
    When i retreive the data from sql plus the text is displayed as question marks.
    Oracle 10g Database character set is WE8MSWIN1252
    Mysql character set --->latin1
    Character set of ODBC connector for mysql is  latin7
    Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
    when i login from sqlplus i get question marks!
    I have another post in Heterogeneous Connectivity forum
    Re: Oracle to Mysql character set conversion problem!!! PLZ HELP
    Kindly update your comments there,
    @@@@@@@@@@@@@@2
    Appreciate your help,
    regards
    Edited by: user10243788 on Apr 21, 2010 3:25 AM

    It is OK to post a globalization-related question in this forum in addition to the forum pertaining to the main technology. Not all experts follow all possible forums on OTN. Of course, you should cross-link the posts to let people merge the answers.
    Regarding the problem itself, make sure that SQL*Plus has the right NLS_LANG setting in the environment. On Windows, in the Command Prompt:
    C:\> set NLS_LANG=.WE8PC850
    C:\> sqlplus ...On Unix:
    $ setenv NLS_LANG .WE8ISO8859P1   (or NLS_LANG=.WE8ISO8859P1; export NLS_LANG)
    $ sqlplus ...-- Sergiusz

  • How to set width for this modal dialog box?

    Hi All,
    How to set width to this modal dialog box:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;}); return false;" type="button" value="Vote"/>
    Thanks in advance!

    set as bellow:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;,width:700,height:350}); return false;" type="button" value="Vote"/>
    yaşamak bir eylemdir

  • How to set width to be same as screen size?

    Dear all
    I want to set the width of my view elements to be same as that of screen size, so that if a user with low resolution monitor runs it, or if a user with high resolution monitor runs it, both see the same.
    I tried setting the width to 100%. But it is not working.
    My root container layout is Grid layout.
    Any suggestions please?
    Thanks in adv.

    Hi,
    For ROOTUIELEMENTCONTAINER set the stretchedHorizontally,stretchedVertically to true.
    And for the UI element set width as 100%, this will make the UI elem to expand to the complete screen.
    Best regards,
    Suresh
    Message was edited by:
            Suresh Honnappanavar

  • Fixing a set width for horizontal menu bar

    I'm using the Spry horizontal menu bar at the top of my page and want to put it as a set width that doesn't zoom or shrink in size when someone uses this function on their screen.  At the moment, when zooming, the menu wraps to the next line.  How can I stop this?  Does anyone know how to do this please?
    Many thanks,

    You can set the width of the menuitems as a percentage, you can also set a minimum width for the menubar container (UL).
    Gramps

  • Setting width/height too early??

    I noticed if I set width and/or height before adding it to
    displayList, the displayObject simply won't show up. The following
    code is a cut&paste from livedoc (SimpleButton), except that I
    add a line of "button.width=20".
    If, however, I move the line to after addChild(), things work
    normally.
    Why?:confused: :confused: :confused:
    [CODE]
    package {
    import flash.display.*;
    import flash.events.*;
    public class SimpleButtonDemo extends Sprite {
    public function SimpleButtonDemo( ) {
    // Create a simple button and configure its location
    var button:SimpleButton = new SimpleButton( );
    button.x = 20;
    button.y = 20;
    //// ################# Added by me. Button won't show up any
    more.
    button.width = 80;
    // Create the different states of the button, using the
    // helper method to create different colors circles
    button.upState = createCircle( 0x00FF00, 15 );
    button.overState = createCircle( 0xFFFFFF, 16 );
    button.downState = createCircle( 0xCCCCCC, 15 );
    button.hitTestState = button.upState;
    // Add an event listener for the click event to be notified
    // when the user clicks the mouse on the button
    button.addEventListener( MouseEvent.CLICK, handleClick );
    // Finally, add the button to the display list
    addChild( button );
    //// ############### This works, if added here!!!!
    // button.width = 20;
    // Helper function to create a circle shape with a given
    color
    // and radius
    private function createCircle( color:uint, radius:Number
    ):Shape {
    var circle:Shape = new Shape( );
    circle.graphics.lineStyle( 1, 0x000000 );
    circle.graphics.beginFill( color );
    circle.graphics.drawCircle( 0, 0, radius );
    circle.graphics.endFill( );
    return circle;
    // Event handler invoked whenever the user presses the
    button
    private function handleClick( event:MouseEvent ):void {
    trace( "Mouse clicked on the button" );
    }[/CODE]

    You're using the simple button class. Just because you
    instantiate an object of this class doesn't mean you've added
    anything to the button.
    What I'm trying to tell you is that addChild has nothing to
    do with it. Simple Button just happens to be dependent on what is
    defined inside the button states themselves.
    For instance, comment out your hitStates leaving your width
    call after the addChild and you should notice the same behavior as
    before. By defining the button states, you are actually adding
    content to the container that will be drawn to the display when
    addChild is called.
    You can define your height and width anytime after you have
    defined the states for the button. At this point, Flash will then
    have content to manipulate. Until you have drawable content to push
    to the display list, nothing will happen when width and height are
    called.

  • Brand new IPad 3 out of the box - set up problem with Apple ID

    Brand new iPad 3 out of the box - set up problem. It says my Apple ID (email address) is already being used. I reset the password successfully but still says I need another Apple ID. Why won't the ID recornize me?

    Open current iTunes on your computer. Connect iPhone to the computer with the Lightning USB Cable. Hold both the Home and Power buttons for about 20 seconds until iTunes recognizes the iPhone in Recovery Mode. Click the Restore button of iTunes. If still problem, make Genius reservation or set up Sevice and take or send to Apple for resolution under Warranty.

  • How to set width of a vertical scrollbar (such as in a combobox)

    I have a combox. I have successfully figured out how to set the font name and font size for each time, however as I have increased the normal very tiny size of the combobox items (now more legible), the remaining last problem is the measly 16 pixels for the scrollbar. This might be acceptable on a desktop with a precise cursor positioning system, but for mobile apps I need a way larger scrollbar thickness, perhaps 30 pixels. How does one set the scrollbar thickness for a combobox? I am willing to stick with scaled up icons from whatever is being drawn as a default, so if possible I would just like to set some style number. But can't find any documentation on this. The Apple system has a nasty fixed width scrollbar (20 pixels), and so far it seems Adobe Flash is using only 16. Great for when you are cramped but I am trying to UN-CRAMP the user interface!
    any help is greatly appreciated.  A free copy of Discus ($40 value) for whomever helps me solve this vexing problem with the least amount of effort!
    edj

    Edit the item and in the HTML Form Elements Attributes field type the following:
    style="width:120px";adjust the 120 to whatever width you like
    Shunt

  • Problem found in setting width of javafx.scene.control.Slider

    I am trying to set the width of Slider control. But does not change whatever the value I provide.
    I tried width value from 1 upto 100. It displays with constant width always.
    Sample : Slider{width : 10.0}
    Anyone have idea how to control the width of a Slider?

    Yes, I found the issue when I tried to use layout on the excellent application written by Baechul: [Node Bounding Rectangles & Coordinates|http://blogs.sun.com/baechul/entry/node_bounding_rectangles_coordinates]. Looks at comments for my version.
    I found out that when in a layout, you have to set the width using the layoutInfo field.

  • ComboBox - Setting Selected Values from data

    I am running into a problem in Flex 3 that seems to be
    different from Flex 2. Maybe someone can help.
    I have a function for setting a combobox selected item for a
    location for a value when the titlewindow completes loading. The
    value is a prior value from a prior save. In other words to set the
    combobox a value from a prior session.
    The locations xml file is loaded from a remote object
    oncreationcomplete of the titlewindow. The setselectedvalue
    function worked perfectly in Flex 2 but now only works in Flex 2
    after the titlewindow is loaded. We tested this by running the
    setselectedvalue function from a button click after loading.
    The dataprovider length is showing 0 in our debugging. After
    titlewindow up on screen the length is showing correct ( 35 ) - in
    this case. Our viewxmlobject function is showing no xml. Shows xml
    correctly after up on screen.
    I have set the creationpolicy to "all". That did not help
    either.
    Any suggestions? Anyone. This is killing me. Spent two days
    now trying to get back to working state.
    private function SetSelectedValue_cbLocation(): void {
    var xLocID:String = eLocationID.text;
    //viewXmlObject( cbLocation.dataProvider )
    for (var i : int = 0; i < cbLocation.dataProvider.length
    ; i++) {
    //Alert.show( cbLocation.dataProvider
    .locid, 'Location DataProvider', Alert.OK);
    if ( xLocID == cbLocation.dataProvider.locid ){
    cbLocation.selectedIndex = i;
    break;
    The combobox has the dataprovider set at design time.
    <components:is2ComboBox id="cbLocation" x="585" y="4"
    width="196" dataProvider="{xmlLocations.Record}"
    labelField="locname" dataField="locid"
    change="changeLocation(event)" disabledColor="#004080" prompt="1.
    Please select location"></components:is2ComboBox>

    Hard to say without seeing the code. Is the application
    opening a pop-up window (the title window)? If so, where is the
    combo box located? In the main app or the titleWindow? What calls
    the SetSelectedValue_cbLocation() function?

Maybe you are looking for

  • Error creating sap db connection

    I am getting an error when I try to create a connection within my portal site to a sap r3 system. It happens as soon as I click on the tab. The server shuts down and in the logs I get the following error:  Warning         R3_DATASOURCE Data source is

  • How can I intercept search-on-enter in RichTable?

    Hi! JDev 11.1.2.0.0 I need to intercept the search-on-enter thing in the RichTable. I want to do some checks on the search fields before the search is executed, possibly canceling the query, and I want to bring up my blocking glass pane before the qu

  • Installation using  OEIkit9i

    I am trying to install oracle 9i using the Oracle Embedded Installation Resource Kit and I receive the following error message; There was an error during loading library: areasQueries I need some help on where to proceed from this point.

  • IPad 3 iTunes Match question

    I'm just setting up my new iPad from scratch. Subscribed to iTunes Match on Mac. iPad keeps saying I don't have subscription. But - Mac appleID and iPad appleID are two different usernames/passwords. iPad has my username as my me.com mail address. Ma

  • Can't see Airport Express unit, nor Airport Express Setup in my Network Settings

    I can see my Airport Express in the Airport Express Utility App, lights are all green, but I can't see the unit, nor see the Airport Express Setup section inside my Network Settings. This is the case when trying to find the WiFi signal from 3 MacBook