Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Hover scroll - Scrollable tabs always take a padding in the bottom


Hi,

I want to apply the below scrollable tab
https://preview.keenthemes.com/html/metronic/docs/base/tabs#scrollable-tabs

for the layout
https://preview.keenthemes.com/metronic8/demo1/pages/user-profile/projects.html

However, I got an issue that the scrollable tab always take a bottom padding because class hover-scroll-x has property overflow-x: scroll;
which requires more bottom space even when the width of the tab does not exceed the width of the screen.

I wonder why we don't use overflow-x: auto; so that the padding just appears when it is necessary.
Could you please suggest me to solve this problem?

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

We can't use overflow auto for the hover scroll since we need the scrollbar space initially hidden to prevent the block from jumping during the height/width calculation.

May I know which version of Metronic are you using? In the recent Metronic v8.2.0, we improved the hover scroll classes to handle recent Chrome CSS Overlow behavior changes. You can also try to use overflow-auto BS class to handle it as per your requirements.

Regards.



Hi Sean,

I am using v8.2.0.
Yes, overflow-auto class seems to be able to handle it.

Thanks



Hi,

Great! Glad to hear that. If you need any further help please let us know.
All the best with your project!

Regards.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(