fix: 툴윈도우 세로 분할 시 높이 축소 불가 해소 (#12)#13
Open
dj258255 wants to merge 1 commit into
Open
Conversation
MainPanel이 탭 콘텐츠에서 계산된 큰 minimum size 대신 작은 고정값을 보고하도록 하여, 프로젝트 뷰 등과 같은 쪽에 도킹했을 때 분할선을 자유롭게 조절할 수 있게 함. 좁은 도크에서는 WrapLayout 줄바꿈으로 최소 높이가 오히려 커져 분할선이 더 막히던 문제도 함께 해소.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12
문제
CodingTestKit 툴윈도우를 프로젝트 뷰와 같은 쪽에 도킹해 세로 분할하면 분할선이 일정 높이 아래로 내려가지 않아 프로젝트 뷰가 몇 줄밖에 안 보임.
원인
IDE 툴윈도우 분할선은 콘텐츠의 minimum size를 하한으로 삼음. MainPanel의 최소 높이는 '탭 헤더 + 선택된 탭의 최소 높이'로 계산되는데, 문제 탭 상단 컨트롤이 WrapLayout이라 도크 폭이 좁을수록 3~4줄로 줄바꿈되어 최소 높이가 오히려 커지고, 타이머 탭도 시계 컴포넌트에 160x160 최소 크기가 지정되어 있음.
변경 사항
MainPanel.getMinimumSize()를 오버라이드해 작은 고정값(120x80, JBUI 스케일 적용)을 보고테스트
./gradlew compileKotlin통과