Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

overflow-y scroll always show even it not overflow

I'm doing "Scroll JQuery Mobile Panel Separately From Content" ,what I have done

I apply this css to Achieve what I do but the problem is

overflow-y : scroll ==> Always show even its content not overflow.

Do you have any idea about it, Thank in advance.

.ui-panel-inner {
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 0px;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}
like image 327
Jongz Puangput Avatar asked Oct 13 '13 15:10

Jongz Puangput


2 Answers

Try using overflow: auto instead. That will only show scrollbars when the content overflows the normal height, whereas overflow: scroll will show them all the time.

like image 56
Michael Low Avatar answered Nov 01 '22 04:11

Michael Low


overflow-y : scroll always display scroll bars, use auto instead.

.fixed-panel {
  min-height: 280px;
  max-height: 280px;
  overflow-y: auto;
}
like image 3
marvelTracker Avatar answered Nov 01 '22 05:11

marvelTracker