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

Reworked and cleaned up client-side TabSheet and Accordion. #12357

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

Ansku
Copy link
Member

@Ansku Ansku commented Aug 4, 2021

  • Added and corrected JavaDocs.
  • Deprecated unused public methods.
  • Fixed first tab style logic in TabSheet.
  • Fixed navigation focus logic in TabSheet.
  • Renamed private methods and variables for clarity.
  • Removed unnecessary or duplicated private methods.
  • Reworked some logic to clarify it and to better match my understanding
    of what's supposed to happen within those methods.
  • Updated some deprecated method calls to use currently recommended
    solutions.
  • Added regression tests.

@Ansku Ansku force-pushed the updateTabSheet20210804 branch 2 times, most recently from 756d067 to 03f61b9 Compare August 6, 2021 11:32
@TatuLund TatuLund added this to the 8.14.0 milestone Aug 6, 2021
- Added and corrected JavaDocs.
- Deprecated unused public methods.
- Fixed first tab style logic in TabSheet.
- Fixed navigation focus logic in TabSheet.
- Fixed tab width bookkeeping for scrolling TabSheet tabs.
- Renamed private methods and variables for clarity.
- Removed unnecessary or duplicated private methods.
- Reworked some logic to clarify it and to better match my understanding
of what's supposed to happen within those methods.
- Updated some deprecated method calls to use currently recommended
solutions.
- Added and updated regression tests.
@@ -1248,6 +1767,8 @@ private boolean isScrollerAtFirstVisibleTab() {
*/
@Deprecated
public class PlaceHolder extends VLabel {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClassCanBeStatic: Inner class is non-static but does not reference enclosing class
(at-me in a reply with help or ignore)

TableCellElement spacerCell = ((TableElement) tb.getElement().cast())
.getRows().getItem(0).getCells().getItem(tb.getTabCount());
// This element is hidden by Valo, test with legacy themes.
TableCellElement spacerCell = ((TableCellElement) tb.spacerTd.cast());
if (scroller.getStyle().getDisplay() != "none") {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReferenceEquality: Comparison using reference equality instead of value equality
(at-me in a reply with help or ignore)

@Ansku Ansku merged commit 54230df into vaadin:master Aug 13, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants