-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Eliminate the empty space between the word "available" and the vertical scrollbar up arrow on the right side of the volume info header #493
Comments
Right-aligned strings are more complex than it would assume. Left aligned-strings can be drawn by moving the current position to a fixed start location, and drawing each substring (e.g. label, number), and drawing spaces to erase a previous shorter string. Drawing right-aligned strings requires composing all of the substrings into a buffer, shifting the string to have spaces as a prefix, computing the length, offsetting the current position, and drawing the string. It's not worth my time or the code complexity for this, although I wouldn't object if someone submitted a good patch. |
Can't you eliminate the empty space between the word "available" and the vertical scrollbar up arrow on the right side of the volume info header while still using left-aligned strings? |
Describe the bug To Reproduce
Expected behavior Screenshots System Details (please complete the following information):
Additional context |
This is now a bug that can be fixed while still using left-aligned strings. |
This bug is definitely from when you briefly changed changed the size displayed in the volume info header from "K" to "KB" and back again. |
I have confirmed that this bug is definitely from when you briefly changed changed the size displayed in the volume info header from "K" to "KB" and back again. |
I am sorry and I apologize for the repeated posts in this issue and in issue #523. Please do not suspend or ban me. Thank you for your trouble. |
Improve the logic of laying out the header items in directory windows. Previously, the logic pre-calculated the maximum space each chunk (item count, k in disk, k available) used. Centering was wonky because it assumed each item was full width, and the k available was not filly right aligned either. It also had a minimum threshold below which the layout logic shifted shifted entirely. Change to computing the actual width of each chunk dynamically as it's not in a tight loop. Then properly center the middle chunk between the left and right chunks by computing the gap needed on each side. And impose a lower limit on the gap. This makes the layout "perfect" for all window sizes - cut off when it gets too low, but without a transition. Note that the middle chunk is not visually centered below the window title, but it is visually centered with respect to the adjacent text items. Can't satisfy both constraints! Resolves #493
Eliminate the empty space between the word "available" and the vertical scrollbar up arrow on the right side of the volume info header, just like the early Mac and the IIGS.
The text was updated successfully, but these errors were encountered: