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

remeasure method called twice #10

Open
rpstew opened this issue Jan 2, 2016 · 0 comments
Open

remeasure method called twice #10

rpstew opened this issue Jan 2, 2016 · 0 comments

Comments

@rpstew
Copy link

rpstew commented Jan 2, 2016

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.

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

1 participant