EasyUI Forum
May 13, 2024, 03:49:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Automatic scrollbar show / hide in datagrid when needed  (Read 19257 times)
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« on: January 24, 2013, 03:39:24 AM »

The available space on the user screen is valuable (screenestate), but we lose space because of the annoying reserved space for a scrollbar. 

When using pagination the scrollbar should disappear (fitcolumns: true), but this always shows the pagination footer. One of the grids we created is very small (two columns) and therefore the pagination footer doesn't fit.

So we have multiple 'conflicts'
- pagination footer does not fit
- pagination footer is not needed when displaying page 1 of 1.
- autohide scrollbar reserved space without pagination possible?
 
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #1 on: February 18, 2013, 01:12:26 PM »

Anyone?!
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: February 19, 2013, 02:37:42 AM »

Can you give an example?

In my case it shows scrollbars only when it is needed
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #3 on: February 21, 2013, 03:33:28 AM »

When you set a specific height (higher then needed for content), you get this:

http://jsfiddle.net/g3sVm/17/

The height is set because we have multiple datagrids on a single row.
It looks better if these are the same height. At the moment the height is calculated when the datagrid is initialized (not in the example)


Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #4 on: March 01, 2013, 12:11:52 AM »

Nobody has the same result as the example.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!