Vertical scroll bar position change list

Hi all

Selection of the list makes the list (scroll) jump to move the selected entry to the top any idea on this issue.

Kind regards

knockaert

Try it in a simple test case.  I don't think that's the default behavior.

Tags: Flex

Similar Questions

  • help with a problem of vertical scroll bar with a list item

    Hello. I have a < s:list > base using an XMLListCollection as there the data provider and a very basic itemrenderer. When a row is clicked in the list a function gets the list.selectedIndex then fills some text with more xml data fields. everything works fine... the problem I have is that the vertical scroll bar on the list seems to be "clickable" - as a line in the list. the scroll bar Scrolls normally but when he clicked on the selectedIndex property becomes-1 which is not useful b/c, the value-1 is passed to the XMLListCollection.

    any ideas? Cheers.

    The default value for SelectedIndex is - 1.  If you have not selected all the items in the list, then it will always return-1.

    Here is a sample application, view, if you select an item and then click the scroll bar is not - 1:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" >
       
       
            Import spark.events.IndexChangeEvent;
    protected function list1_clickHandler(event:MouseEvent):void {}
    trace ("Click event:", event.currentTarget.selectedIndex);
    }
    protected function list1_changeHandler(event:IndexChangeEvent):void {}
    trace ("change the event:", event.currentTarget.selectedIndex);
    }
    ]]>
       

       
       
           
       

       

  • ADF faces table resets the position of the vertical scroll bar

    Hi all

    I have a table on a page with 1000 records adf and when I try to see the records in the middle of the table, for example, the vertical scroll bar returns automatically to the top position.

    Any ideas would be appreciated!

    Thank you

    JDeveloper version: 11.1.2.3.0

    Published by: lorpad on November 29, 2012 12:59

    Published by: lorpad on December 5, 2012 12:26

    Just checked in my application (11.1.2.3, 1000 + lines) and it works as expected.
    You can try to reproduce this problem with simple test cases and if it works then compare table and properties of VO.

    Dario

  • Initial position of the vertical scroll bar control

    How to have the scroll bar position and the image centered at the opening. User can then scroll upwards or downwards. Dreamweaver CS 5.5

    http://www.centaursinvietnam.org/history/ihistoryUnitsMap.html

    I noticed that the "Go To" address did not work. So just go to this page on my Web site

    http://www.centaursinvietnam.org/history/ihistoryUnitsMap.html#cuchiline

    And "View Source" in your browser.

    Bruce

  • long pull down the menu with no vertical scroll bar

    People,

    It's been 3.5 years ago when we had to learn that there is no way to have a long drop down menu control without a vertical scroll bar. See

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=217428&query.ID=395029#M217428

    Now, after that we got LabVIEW 8.6.1 there is still no the ability to remove the vertical scroll bar if there is a 'Vertical Scrollbar Visible' property node for the drop-down list boxes. As already observed in 2006 with the drop-down list 8.2 LV Smercurio, this property node has no effect, probably because of a bug. This behavior is always the same with LV 8.6.1.

    A few days ago a user of our software have complained that the menu items would be missing. In fact, they were not, but rather he oversaw the scroll bar and do not scroll to the bottom of the column - that's why it did not find the menu items. In general, it's pretty annoying if you have to scroll first before you can select a particular item. In most cases, the scroll bar is all just useless since the Panel is large enough to display all menu items at the same time.

    How do you design a long drop-down menu on your UI? Any ideas how to get around the scroll bar mean?

    Sorry for the lengthy post. I'm afraid that you have to use the vertical scroll bar while reading my text...

    Thanks for any input,

    Peter

    Stoeckel says:

    Any ideas how to get around the scroll bar mean?

    I think that's what you're asking.  This works for any named digital control, and I think a small change will be too much work for a drop-down list box.

    Jim

  • Move the vertical scroll bar of the Panel to the left of the Panel

    I have a skin Panel with the following:

    <s:Scroller id="contentScroller" height="100%" width="100%" 
                     horizontalScrollPolicy="off" verticalScrollPolicy="auto">
        <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0"/>
    </s:Scroller>
    

    For the life of me I can't understand how to move from contentScroller to the left of its container.

    I tried setting contentScroller x, y, up, left, down, right, the properties height and width to different values, but what I have in the extract seems to be the only way that it appears at all.

    Based on the research, I tried this in the script of the skin:

    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
        super.updateDisplayList( unscaledWidth, unscaledHeight );
        if( contentScroller.visible ) {
            //contentScroller.verticalScrollBar.x = 0;
            contentScroller.verticalScrollBar.x = -contentScroller.verticalScrollBar.width;
        }
    }
    

    Or lines in the if block makes no difference as to where this thing is rendered.  Here's a screenshot of my Panel:

    crap.JPG

    And here's what I would do:

    crap2.JPG

    Thanks for the research!

    I found a solution.

    I removed the code in the script block and I went back to a scroller in the mxml.

    
        
    
    

    I thought that I could set the vertical scroll bar by creating a skin based Scroller.  In the generated file, I saw this:

    Scroller unconditionally sets its skin's layout to private layout
    implementation that handles the scroll policies.  Scroller skins can
    only provide replacement scrollbars.  The skin's layout and
    constraints or dimensions set on skin parts will not be honored.  To
    gain more control over the layout of a viewport and its scrollbars,
    instead of using Scroller, add them to a Group and use the ScrollBar component's
    viewport property to link them together.
    

    So I then changed my skin Panel to look like the following:

    
        
            
        
        
        
            
                
            
            
        
    
    

    Finally, I added the following to the script block for positioning controls correctly:

    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
        verticalScroller.left = topGroup.height;
        contents.left = verticalScroller.x + verticalScroller.width;
        super.updateDisplayList( unscaledWidth, unscaledHeight );
    }
    
  • adjustPopupWidth will not correctly work if there is a vertical scroll bar

    Previously, I use "adjustPopupWidth", so that my JComboBox will enough width to display all items in the drop-down list.

    However, I realize when he is present of the vertical scroll bar, 'adjustPopupWidth' will not produce a good width to display all the items in the drop-down list. This causes a horizontal scrollbar to appear as well (which is not what I want)

    A code example is as follows:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    /*
     * NewJFrame.java
     *
     * Created on Dec 30, 2010, 12:35:42 AM
     */
    
    package javaapplication24;
    
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollBar;
    import javax.swing.JScrollPane;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import javax.swing.plaf.basic.BasicComboPopup;
    
    /**
     *
     * @author yccheok
     */
    public class NewJFrame extends javax.swing.JFrame {
    
        // Resize JComboBox dropdown doesn't work without customized ListCellRenderer
        private void adjustPopupWidth() {
            if (jComboBox1.getItemCount() == 0) return;
            Object comp = jComboBox1.getUI().getAccessibleChild(jComboBox1, 0);
            if (!(comp instanceof JPopupMenu)) {
                return;
            }
            JPopupMenu popup = (JPopupMenu) comp;
            JScrollPane scrollPane = (JScrollPane) popup.getComponent(0);
    
            //Object value = this.getItemAt(0);
            //Component rendererComp = this.getRenderer().getListCellRendererComponent(null, value, 0, false, false);
            //if (rendererComp instanceof JXTable) {
            //    scrollPane.setColumnHeaderView(((JTable) rendererComp).getTableHeader());
            //}
            BasicComboPopup basic = (BasicComboPopup)comp;
            Dimension prefSize = basic.getList().getPreferredSize();
            Dimension size = scrollPane.getPreferredSize();
    
            size.width = Math.max(size.width, prefSize.width);
            scrollPane.setPreferredSize(size);
            scrollPane.setMaximumSize(size);
            // Do we need to call revalidate?
            //scrollPane.revalidate();
        }
    
        private void adjustScrollBar() {
            final int max_search = 8;
            // i < max_search is just a safe guard when getAccessibleChildrenCount
            // returns an arbitary large number. 8 is magic number
            JPopupMenu popup = null;
            for (int i = 0, count = jComboBox1.getUI().getAccessibleChildrenCount(jComboBox1); i < count && i < max_search; i++) {
                Object o = jComboBox1.getUI().getAccessibleChild(jComboBox1, i);
                if (o instanceof JPopupMenu) {
                    popup = (JPopupMenu)o;
                    break;
                }
            }
            if (popup == null) {
                return;
            }
            JScrollPane scrollPane = null;
            for (int i = 0, count = popup.getComponentCount(); i < count && i < max_search; i++) {
                Component c = popup.getComponent(i);
                if (c instanceof JScrollPane) {
                    scrollPane = (JScrollPane)c;
                    break;
                }
            }
            if (scrollPane == null) {
                return;
            }
            scrollPane.setHorizontalScrollBar(new JScrollBar(JScrollBar.HORIZONTAL));
            scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        }
    
        private PopupMenuListener getPopupMenuListener() {
            return new PopupMenuListener() {
                @Override
                public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                    // We will have a much wider drop down list.
                    adjustPopupWidth();
                }
    
                @Override
                public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
                }
    
                @Override
                public void popupMenuCanceled(PopupMenuEvent e) {
                }
            };
        }
    
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
            // Have a wide enough drop down list.
            jComboBox1.addPopupMenuListener(this.getPopupMenuListener());
            adjustScrollBar();
        }
    
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
         */
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
    
            jComboBox1 = new javax.swing.JComboBox();
    
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "long long long long long string", "Item 8", " " }));
    
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(140, 140, 140)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(152, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(269, Short.MAX_VALUE))
            );
    
            pack();
        }// </editor-fold>
    
        /**
        * @param args the command line arguments
        */
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
                }
            });
        }
    
        // Variables declaration - do not modify
        private javax.swing.JComboBox jComboBox1;
        // End of variables declaration
    
    }
    Remove 'Item 1' up to 'Article 7', results in a vertical scroll bar is not displayed. Therefore, "adjustPopupWidth" will work correctly.

    It seems that the calculation within the "adjustPopupWidth", should take into account in the bar vertical scrolling. But how?

    Thank you.

    [url http://www.camick.com/java/blog.html?name=combo-box-popup] Combo Box Popup handles this.

  • Can I put a vertical scroll bar in the browser firefox left?

    Can I put a vertical scroll bar in the browser firefox left?
    I'm left-handed so using the quite difficult scroll bar, so I want to move the scroll bar position, so I have to do? hope to receive a response soon from the Center

    The value of pref layout.scrollbar.side 3 to place the scroll bar on the left side.

    See:

  • Vertical scroll bar in the control table

    I use CVI 2012 and using a table control in the editor of the IUR. I started with a table containing 27 rows and 5 columns. The Panel container was large enough to display all the rows and columns, so without scroll bars have been necessary. Then I added more than 14 rows in the table, and a vertical scroll bar appeared on the right edge of the table. «By default, she marched to the bottom of the table, and I tried to change this up by changing"line 41 / 41" to "line 1 / 41" in the editor of the IUR.» He put back the first lines of the table, but the bar scroll also disappeared and I can't seem to restore, even if the table has more lines that can be displayed in the Panel containing.

    In dialog box "Edit Table" editor of the UIR, in the field of the 'appearance of control', the ' scrollbars: ' control has the value ' both scroll bars. I tried a number of combinations in the dialog "Options for size/Scroll...". "so - nothing seems to restore the scroll bar.

    I will attach the UIR file where this is useful. Interest table is the tool 'ID' tab thanks in advance!

    Barry Wealand

    I figured this out. Somehow, the width of the table control had also grown, such as the vertical scroll bar was pushed out the Panel on the right. By adjusting the size of the control so that the width of the table fits once more in Control Panel that contains the scroll bar appears once more.

    Barry Wealand

  • TREE programmatically set vertical scroll bar

    Is there a way to programmatically control the position of the vertical scroll bar of the TREE. I've looked through the nodes of property and do not see it. Thank you...

    The closest thing I know is to call the Visible ensure invoke node on a specific item tag. Who will ensure that the node can be seen in the current scrolling selection. So you can call it on a particular tag to access a particular section. This has other side effects, such as the expansion of the section that contains the node you call it, is not an ideal way to scroll position.

  • Instability of the vertical scroll bar of the Panel

    Win 7 Professional, SP 1, 64-bit on a Lenovo ThinkPad. The vertical scroll bar on the "Programs and features" Control Panel suddenly is so unstable that it is impossible to click on a title. Agitation is present both a Logitech mouse and ThinkPad track point device, well even more so with the mouse. The mouse driver is up to date, and the batteries are charged.  The instability of the scroll bar does not seem to occur in all areas of the Control Panel, but appears on some menus of Windows Explorer, to a certain extent on this page (I have difficulties to access the submit button) and some Internet sites. Word so far.  What do about it?

    Hello

    Thanks for posting your query in Microsoft Community Forum.

    1. You did it no particular change in the computer before the show?

    Please, try the following suggestions and check.

    Method 1: Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows/Start-computer-safe-mode#start-computer-safe-mode=Windows-7

    If the problem does not occur in safe mode or safe mode with network and then places the machine to clean the start State and check if helps you solve this problem.

    Method 2: Run the clean boot

    Put your system to the clean boot state helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    See the link to perform the clean boot.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135/en-us

    Note: See 'How do I reset the computer to start normally after a boot minimum troubleshooting' to reset the computer starts normally after troubleshooting.

    Let us know if the problem still persists. We will be happy to help you further.

    Thank you

  • How to apply the vertical scroll bar to &lt; af:selectOneChoice &gt;?

    Hi all...

    JDeveloper Version is 11.1.1.7.1

    My use case is as follows:

    I used < af:selectOneChoice > that contains 10 items. When the user clicks on an item, instead of a list of all the Articles 10, I want only 3 items to display, remaining is displayed only when the user scroll down.

    Here is my code:

    < af:selectOneChoice label = "Numbers".

    Binding = "#{backingBeanScope.backing_scroll." Soc1}.

    ID = "soc1" >

    < af:selectItem label = "Item1" value = "One"

    Binding = "#{backingBeanScope.backing_scroll." SI1}.

    ID = "si1" / >

    < af:selectItem label = "Item2" value = "Two"

    Binding = "#{backingBeanScope.backing_scroll." SI2}.

    ID = "si2" / >

    < af:selectItem label = 'Item3' value = "Three"

    Binding = "#{backingBeanScope.backing_scroll." Si3}.

    ID = "si3" / >

    < af:selectItem label = "Item4" value = "Four"

    Binding = "#{backingBeanScope.backing_scroll." Si4}.

    ID = "si4" / >

    < af:selectItem label = "Item5" value = "Five"

    Binding = "#{backingBeanScope.backing_scroll." Si5}.

    ID = "i5" / >

    < af:selectItem label = "Item6" value = "Six"

    Binding = "#{backingBeanScope.backing_scroll." Si6}.

    ID = "si6" / >

    < af:selectItem label = "Item7" value = "Seven"

    Binding = "#{backingBeanScope.backing_scroll." Si7}.

    ID = "si7" / >

    < af:selectItem label = "Item8" value = "Eight"

    Binding = "#{backingBeanScope.backing_scroll." Si8}.

    ID = "si8" / >

    < af:selectItem label = "9" value = "Nine"

    Binding = "#{backingBeanScope.backing_scroll.si9} '"

    ID = "si9" / >

    < af:selectItem label = "Article 10" value = "10"

    Binding = "#{backingBeanScope.backing_scroll.si10} '"

    ID = "si10" / >

    < / af:selectOneChoice >

    How can I accomplish this? Any suggestions?

    Hi all

    JDeveloper by default displays a vertical scroll bar if it has more than 20 Articles in selectOneChoice.

    Thank you.

  • How to hide the vertical scroll bar in the Combobox?

    Hello

    I try to hide the vertical scroll bar in my combobox, because the number of items is small so it is not necessary that the vertical scroll bar is displayed.

    I have a very strange behaviour :

    When I view for the first time in my combobox, the vertical scroll bar is displayed - unless I have enough evidence to justify the appearance of the vertical scroll bar!

    When I select an item in my combobox, the vertical scroll bar disappears (good behavior): it is always the same list of items!

    I have try several solutions... the vertical scroll bar always appears!

    If you have any ideas, it will be fun...

    Thanks in advance

    concerning

    FM

    Try the following:

      primaryStage.show();
            Platform.runLater(new Runnable() {
                public void run() {
                    final Node scrollBar = comboBox.lookup(".scroll-bar:vertical");
                    scrollBar.setOpacity(0);
                }
            });
    
  • Vertical scroll bar in a tree node

    Hi friends,

    I am trying to create a tree in Apex 4.0. I need a vertical scroll bar in my flowchart if no: values is greater than 8. For example, I have a tree with customers and sites. When I press the clients it will list sites for this customer. I need a vertical scroll bar is displayed for the sites if no: sites is greater than 8, so I can limit the size of the tree. Are there ways to achieve Apex 4.0. Any entry for this will be appreciated.

    Thank you
    NAV

    You could combine all these properties in one class (inline of the div & fix Andy's IE styles) and assign it to the div.

      div.tree_scroll_div{
      overflow-y: auto;
      display: block;
      min-height: 10px;
      _height: 10px;
       }
    

    + Note: _hieght * gets ignored by all browsers except IE, it considers the height itself (CSS Hack). +

  • Dashboard area vertical scroll bar

    I need to place a table bi report area of fixed size on my dashboard page. The report will be generally more lines that can be found in the space available if I want to use a vertical scroll bar to allow the user to view the entire report.

    The report will be no more 10-20rangs so I don't want to use pagination if I can help it. I would like a vertically scollable region on my dashboard. Is this possible? I don't seem to be able to find previous examples of this but would be surprised that he has not done before.

    TIA.
    Paul

    Hi Paul,.

    You do not have this feature by default, we can do this by using an IFrame like this.

    [Iframe src = saw.dll? Go&path=/shared/sample%20Sales/test/product%20Sales width = 300 height = 500 scrollable = yes >

    [Note: replace space] [with html tags >]

    In the path % 20 is used for white space and mention your path to the report, by adjusting the width and height, you can set the report accordingly

    Two ways you can do,

    Create table view, save the view.

    (1) go to the narrative mode add the Iframe it and specify the path of the report and in the layout made add narrative display, remove the table view.

    or

    (2) to change the dashboard, add text, and enter the code Iframe the report path.

    In both cases do not forget to check HTML.

    Thank you
    Vino

    Published by: Vinodh NK on October 4, 2010 03:12

Maybe you are looking for

  • How can I remove the Skype from my iPad app

    I hold down the icon of the application until it sheak and has the 'x' on the top left corner.  When I try to hit the 'x' to delete it does nothing.   How can I remove the app?

  • Download and open the Excel files on iPad Pro

    I have the new iPad Pro.  I have Office 365 is installed.  In my work, I run queries of data on a server and the query result comes to me in Excel.  I want to download the Excel file and open it for editing on my iPad Pro.  What I have actually / to

  • Smartphones blackBerry browser icon goes to the email settings

    I had trouble getting my emails to go to my BB.  In trying to fix this, it seems that I've changed something with my browser icon.  When I click on it - it takes me to the e-mail settings screen. A strange thing about this - I can't click Cancel to g

  • BlackBerry Curve 8520 download smartphone

    Hey guys, I tried and tried to find out how to download a picture of my Curve 8520 to facebook etc. but I had no luck what-so-ever. Can someone help me? Thank you very much

  • Problem with sculpt ergonomic keyboard.

    I can't find any light for the locking caps on this keyboard or for Num Lock light on the block of numbers.