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

MsGraphicsPkg: Correct positioning of trash can icon in Load Option's list box #552

Conversation

julorenz117
Copy link
Contributor

@julorenz117 julorenz117 commented Aug 19, 2024

Description

Fixes #554

  • Adjusted CellTrashcanBounds.Left to be CellBounds->Right - TrashcanHitAreaWidth
    to ensure the trash can icon is displayed to the right of the list box.
  • Updated width parameter in SWM_RECT_INIT2 to use TrashcanHitAreaWidth instead
    of CheckBoxHitAreaWidth for correct dimensions.

This resolves the issue of the trash can icon overlapping with the ListBox's deletable item's checkbox thus ensuring its related operations work correctly: activating/deactivating the Load Option or deleting it.

How This Was Tested

Verified that a Load Option allowed to be deleted, such as 'Windows Boot Manager', can now be deleted by pressing the trash icon in its proper position or activated via its check-box.

Integration Instructions

N/A

- Adjusted CellTrashcanBounds.Left to be CellBounds->Right -
  TrashcanHitAreaWidth to ensure the trash can icon is displayed
  to the right of the list box.
- Updated width parameter in SWM_RECT_INIT2 to use
  TrashcanHitAreaWidth instead of CheckBoxHitAreaWidth for correct
  dimensions.

This resolves the issue of the trash can icon overlapping with the
ListBox's checkbox thus ensuring its related operations work
correctly.

Co-authored-by: Michael Kubacki <[email protected]>
@makubacki makubacki force-pushed the personal/julorenz/msbootpolicy/4299663 branch from 702909e to c5d7c16 Compare August 21, 2024 14:56
@makubacki makubacki requested review from makubacki and apop5 August 21, 2024 14:57
@makubacki
Copy link
Member

@julorenz117 - Fyi, pushed an update to the PR branch to squash all commits, rebase on latest release/202311, remove comments and correct code formatting to pass CI.

@makubacki makubacki added the type:bug Something isn't working label Aug 21, 2024
@makubacki makubacki changed the title Fix: Correct positioning of trash can icon in Load Option's list box MsGraphicsPkg: Correct positioning of trash can icon in Load Option's list box Aug 21, 2024
@makubacki makubacki merged commit fa263f1 into microsoft:release/202311 Aug 22, 2024
34 checks passed
apop5 pushed a commit to apop5/mu_plus that referenced this pull request Aug 27, 2024
… Load Option's list box (microsoft#552)

Fixes microsoft#554

- Adjusted CellTrashcanBounds.Left to be CellBounds->Right -
TrashcanHitAreaWidth
to ensure the trash can icon is displayed to the right of the list box.
- Updated width parameter in SWM_RECT_INIT2 to use TrashcanHitAreaWidth
instead
  of CheckBoxHitAreaWidth for correct dimensions.

This resolves the issue of the trash can icon overlapping with the
ListBox's deletable item's checkbox thus ensuring its related operations
work correctly: activating/deactivating the Load Option or deleting it.

Verified that a Load Option allowed to be deleted, such as 'Windows Boot
Manager', can now be deleted by pressing the trash icon in its proper
position or activated via its check-box.

N/A

Co-authored-by: Michael Kubacki <[email protected]>
apop5 pushed a commit that referenced this pull request Aug 27, 2024
… Load Option's list box (#552)

Fixes #554

- Adjusted CellTrashcanBounds.Left to be CellBounds->Right -
TrashcanHitAreaWidth
to ensure the trash can icon is displayed to the right of the list box.
- Updated width parameter in SWM_RECT_INIT2 to use TrashcanHitAreaWidth
instead
  of CheckBoxHitAreaWidth for correct dimensions.

This resolves the issue of the trash can icon overlapping with the
ListBox's deletable item's checkbox thus ensuring its related operations
work correctly: activating/deactivating the Load Option or deleting it.

Verified that a Load Option allowed to be deleted, such as 'Windows Boot
Manager', can now be deleted by pressing the trash icon in its proper
position or activated via its check-box.

N/A

Co-authored-by: Michael Kubacki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: The Trashcan icon does not show on the right side of the ListBox
3 participants