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

SL-18977 Borders of inventory view in inventory floater seem to be cut a bit #240

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

LLGuru
Copy link
Contributor

@LLGuru LLGuru commented Jun 9, 2023

No description provided.

@LLGuru
Copy link
Contributor Author

LLGuru commented Jun 9, 2023

image

@@ -126,6 +126,7 @@ LLScrollContainer::LLScrollContainer(const LLScrollContainer::Params& p)

LLRect horizontal_scroll_rect = mInnerRect;
horizontal_scroll_rect.mTop = horizontal_scroll_rect.mBottom + scrollbar_size;
horizontal_scroll_rect.mLeft += 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'3' in this case is a 'magic number', please use a const variable, like HORIZONTAL_SCROLL_LEFT_PAD.

Copy link
Contributor

@akleshchev akleshchev Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On screen it looks like horizontal scroll overlaps vertical scroll, are you sure you don't need to reduce width by the same 3 pixels?

@akleshchev akleshchev self-requested a review June 9, 2023 12:29
@LLGuru LLGuru merged commit eb95bf5 into DRTVWR-567 Jun 9, 2023
@LLGuru LLGuru deleted the guru/SL-18977 branch June 9, 2023 13:55
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants