Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Combobox picklist appears behind window popup

    Hi Isomorphic,

    I am using GWT 2.8.2 and SmartGWT 6.1-p20170724 power version.

    I have created a popup using Window class and added a form with some textItem and comboBoxItem. And ComboBoxItem has datasource to fetch data from server.
    Now issue is when i click on comboBoxitem first time it show picklist behind the model window. This case occur on first time click after that picklist comes on Window always. However when i switch to another formItem and come back to this comboBox, It's picklist again comes behind the window. I have tried giving z-index to picklist using css but nothing fixed.

    Attaching Screenshot for same.

    Click image for larger version  Name:	comboBox issue in window.png Views:	1 Size:	18.6 KB ID:	254931
    Here you can see picklist where 'Manufacturing' selected is coming behing window pop-up.
    I have seen a post "picklist-with-wrong-z-index-appears-behind-window" but that post was for treelist picker.

    Here is my code.

    Code:
    Window window = new Window();
    window.setTitle(title);
    window.setShowMinimizeButton(false);
    window.setModalMaskStyle("modalMask");
    window.setCanDragReposition(false);
    window.setIsModal(true);
    window.setShowModalMask(true);
    window.setShowCloseButton(false);
    window.setAutoCenter(true);
    window.centerInPage();  
    DynamicForm form= new DynamicForm();
    FormItem textBox1 = getTextBox("service", "services1");  
    :                   :                   :
    :                   :                   :
    FormItem  comboBox1= ComboBoxItemFactory.createOrgPgmCatComboBox();
    form.setFields(textBox1, textBox2, comboBox1,....);
    form.setValueManager(valManager);
    
    window.addItem(form);
    Suggest me what need to be done to fix initail z-index for the comboBox item picklist when it comes on model window.

    Thanks

    --
    Kind Regards
    Last edited by sidharth1917; 10 Sep 2018, 09:15.

    #2
    Code like you've shown doesn't reproduce this issue (obviously).

    The only thing we can think of that could create this issue would be a manual call to bringToFront() on the Window after the picklist has been shown, perhaps from a dataArrived handler or similar event.

    Please let us know if you discover anything that suggests this is a framework issue.

    Comment

    Working...
    X