igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Tabbar alignment off for the Phone Contacts tab in the Angular Tabbar

Open MikeTechSpeak opened this issue 8 years ago • 2 comments

Description

TabBar alignment off for the contacts tab. This is likely a control issue and not the CLI, but logging it here because even if it is determined to be not a bug in the control, the CLI sample looks bad as is, and should be corrected.

Steps to reproduce

Use the cli to create a new project and add a tabbar template to it Click through the tabs

Result

The first tab, the phone contact tab, the tabbar is indented Note, if you add a lot of text, such that it word wraps it will look correctly.

Expected result

The tabbar positioning should not change per tab, regardless of content.

Attachments

Attach a sample if available, and screenshots, if applicable.

MikeTechSpeak avatar Feb 26 '18 17:02 MikeTechSpeak

This is not a tabbar issue. The problem is with the tab component created in the CLI. As the application centers its components by default (uses igxLayoutJustify="center"), the smaller width of the first tab's content, compared to the paragraphs on the second and third tabs, causes the misalignment described here. Updating the tab-content class with max-width of around 700px resolves the issue:

.tab-content {
    padding: 16px;
    max-width: 700px;
}

Reassigning to PwnJS.

gedinakova avatar Mar 01 '18 13:03 gedinakova

Closing this one reopen if needed

SlavUI avatar Apr 19 '18 10:04 SlavUI