Skip to content

remeasure method called twice #10

Description

@rpstew

I am calling setSplitterSize() and setSplitterPositionPercent() in our app to show and hide a Google Street View. Unfortunately both of those methods force the remeasure() method to be called which seems to cause performance issues. Here is how I hide the street view and the splitter:

       splitPaneLayout.setSplitterSize( 0 );
       splitPaneLayout.setSplitterPositionPercent( 0.0001f );

Here is the code I use to later show the street view and splitter:

        splitPaneLayout.setSplitterSize( 20 );
        splitPaneLayout.setSplitterPositionPercent( 0.5f );

The street view is initially hidden:

I did not see a way to subclass SplitPaneLayout to avoid remeasure being called twice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions