EXTJs Scrollbar position with IE - extjs

I am using TabPanel in my application. Now I have grids and tree panel on every tab.
So whenever I scroll grid or Tree Panel and shift to second tab and then return back to first Tab, Scroll goes to the Top. That's means it doesn't preserve its position.
Also this behavior is only on IE11. In case of Chrome, it works fine. What can be possibly wrong? Can anyone help?

Related

Tab panel with items that don't fit the width of the panel

I am facing an issue where the tabs don't fit the entire width of the panel, and the user has to scroll to the right to view the rightmost tabs.
To see what I mean, please can go to this Sencha example, add enough tabs to enable the scrolling in the tab header.
My questions:
Is there a way to make the tabs wrap rather than having the scrolling effect?
Is there a plugin that can be used to create a dropdown menu/list with all the tabs or perhaps with the tabs that are not visible on the top right corner?
Is there a way to configure the table panel such that when I click on the > button on the right side to scroll the tab items, they scroll enough to make the next item visible instead of scrolling in small increments?
Ultimately, I could simulate the tab panel by adding a toolbar and buttons, and using the cardlayout. That would be my plan B.
Thank you
Update: I can set the flex: 1 property for each tab (inside tabConfig). I still have to figure out tooltips and enable the elipsis on the longer tabs that get chopped off.
There is a tabBar config for tabpanels, see here. Within this you can set layout properties, including overflowHandler, and one possible value is menu. This will do what you asked for in question 2. Add this config to tabpanel definition:
tabBar: {
layout: {
overflowHandler: 'menu'
}
}

Tab performance in cn1

The tab in cn1 works pretty good. But it could be better. I've 2 tabs. When I am in left tab, its content should not move when swiped from left. If it is swiped right, the right tab appears which is fine. Again if I swipe from right in the right tab, its content should not move since there's no other tab in its right.
One more thing, the movements of tabs are not smooth enough. It stops a bit before new tab appears completely.
Have a look at the video here
Tabs display iOS style tensile behavior by default. They let you swipe to an area where you have "nothing" so you can see it's empty. If they just blocked that motion you wouldn't know there is nothing there in the hidden tabs mode.

Grid panel vertical scrollbar issue after refresh

We are having a grid panel which refreshes every 20 seconds (getView().refresh()).
After refresh, the scrollbar loses position and the screen moves up and down. Also, a blank screen is displayed whenever the scrollbar is used and if the refresh happens at the same time. This is happening in both IE and Firefox.
Cellediting plugin is turned on in the grid panel.
Tried different options like preserveScrollerOnRefresh, listeners on beforerefresh, refresh to maintain scroll position, Ext.empty function...etc, but nothing seems to work.
Can anyone please reply on this?
I tried this option but didn't work. I get a blank screen on scroll during refresh or the scrollbar jumps to any position after refresh

How to scroll an extjs panel towards right

I have an extjs panel. This panel has dynamic contents added into it every time I press a button. This dynamic content gets added to the end of the panel, which is not visible until I do a manual horizontal scroll.
I want to scroll to the right most side everytime a new content is added and user see that content immediately (without manually having to scroll right)
Is there any way, I can automatically horizontally scroll the panel towards the end of the panel in the right
Thx

extjs 4 scroilling WITHOUT a scrollbar

I have this narrow panel which is basically a list of thumbnails, and i need to be able to scroll over them using buttons.
We have a panel (anchor layout), with containers in it, and each container contains the image.
there isn't space for a scrollbar, and anyway we don't want one.
I thought it would be as easy as in the listener for my button calling panel.getEL().scroll('b',20)
but this isn't working because the scrollHeight === ClientHeight so scroll does nothing.
Is there a technique I am missing or should this work?
So you're using a button to scroll through the images? What about having the button's listener remove/hide the containers/images at the front of the panel to allow the others to use the space?

Resources