-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-2308. Use own size of part when part stack size is too small for the content of the part #2931
Conversation
Looks good for Git History. I'm asking this because, obviously the default width for the Pull Request Panel and the Git History should not be the same - it should depend on the feature displayed. |
@slemeur |
Build # 831 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/831/ to view the results. |
I think that changing the sizes of the panel, once it has been opened would be ugly. Imagine the following use case: There are probably a tradeoff possible, by increasing the width of the right part - only if the user try to display a panel which require it. We would have the following use cases: This way we avoid constant redrawing and situation where the right part is too small for the content of the panel. Does it make sense to you? Maybe - for the time being it is overkill, but we can fill an improvement for that behavior. |
@slemeur Before my changes we had default size for both panel: 260 Do you prefer follow default size:
|
Yeah, but I'd like the width being updated only if more space is needed. So for example:
750 by default for all panel is too much. |
thank you, Stevan!
At this moment we remember 550 as size for bottom part stack.
What size we need to remember for right part stack? |
Thanks Roman. We need to find a solution which will be the same for each part stacks, not only for right part stack - otherwise it will be confusing for the user. I think that it does not change the main goal that we want to achieve, we want to avoid situations where the user will see the size changing as he is switching between panels. Let's keep the rule defined with the previous comments and override it once the user manually resized a part (all: left, right, bottom). If a user manually resized a part, we use it as default for all panels of the part. |
Build # 1153 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1153/ to view the results. |
Build # 1395 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1395/ to view the results. |
@vparfonov @RomanNikitenko - lets plan to update these files and get them merged in the next sprint. If you have 30 minutes this week, it would be nice to go ahead and do that now. Cleaning up old PRs. |
…the content of the part Signed-off-by: Roman Nikitenko <[email protected]>
bc8366f
to
5a1ef1a
Compare
@slemeur @vparfonov I have updated pull request - please review. |
@RomanNikitenko: Have you applied the latest comment I gave on this PR? btw - you can use reviewers for the PR, it helps anybody to see who must validate the PR before merging it. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1690/ |
|
|
||
if (activePart != null) { | ||
updateWorkBenchPartSize(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add comments on new blocks you are added?
It will help developers to understand the logic of the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
} | ||
} | ||
|
||
private boolean isSizeOverridden(double size) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a little comments on methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Build # 1697 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1697/ to view the results. |
Fixed by #3799 |
What does this PR do?
We use default size for all part stacks now.
After applying my changes we will have next behavior:
This behavior will be apply for all part stacks.
We use default size (260) for all parts except Git history part (it will be 550).
What issues does this PR fix or reference?
#2308
Signed-off-by: Roman Nikitenko [email protected]