Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OJET Tab Item Truncation Issue #40

Open
vanerax opened this issue May 4, 2018 · 1 comment
Open

OJET Tab Item Truncation Issue #40

vanerax opened this issue May 4, 2018 · 1 comment

Comments

@vanerax
Copy link

vanerax commented May 4, 2018

Tab item text is truncated suddenly although there are some room left within the tab bar. It's expected to provide a way to truncated smoothly.

It happens to both OJET 4.x or 5.

Steps to reproduce:

  1. Open the demo page which supports editing example directly.
    http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=tabbar&demo=tboverflow

  2. Remove max-width style so that it'll fit the window width.
    <div class="oj-flex oj-flex-items-pad oj-panel" style="max-width:800px;">
    change to
    <div class="oj-flex oj-flex-items-pad oj-panel">

  3. Change the long label name from "Very very long label" to "Very very very very long label"

  4. Add the following style to the html. It helps observe the truncation change more easily. (Optional)

    <style>
          .oj-tabbar-item.oj-tabbar-item-element {
		    -webkit-flex: 0 0 auto;
            flex: 0 0 auto;
          }
          
          .oj-tabbar-element {
            border: solid 1px red; 
          }
    </style>

Video link attached for the reproducing. https://youtu.be/2Mnu8JfzjJE

As a result, "Very very very very long label" is truncated as "Very ver..." suddenly. Can we have a way to truncated smoothly? Thanks

@bhalke
Copy link

bhalke commented Jul 8, 2020

@zhuanr

Thank you for reporting the issue in detail.

Issue has been taken care in latest version of JET. JET COOKBOOK LINK

Thank you
Sbhalke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants