Skip to content

fix: Fix positioning of dropdown on full-block color fields#2747

Merged
gonfunko merged 2 commits into
mainfrom
color-dropdown
Jul 9, 2026
Merged

fix: Fix positioning of dropdown on full-block color fields#2747
gonfunko merged 2 commits into
mainfrom
color-dropdown

Conversation

@gonfunko

@gonfunko gonfunko commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #2742

Proposed Changes

This PR fixes a bug that caused the dropdown to be mispositioned for full-block color fields. Previously, these fields were always creating a border rect and setting it hidden if they were full-block; the superclass however used the presence or absence thereof as a proxy for being full-block when computing the field's bounding box, causing an incorrect bounding box to be generated for a full-block color field, which in turn caused the dropdowndiv to position itself incorrectly. Now, the color field only creates a border rect if it's not full-block.

@gonfunko gonfunko requested a review from a team as a code owner July 1, 2026 21:53
@gonfunko gonfunko requested review from maribethb and removed request for a team July 1, 2026 21:53
@gonfunko gonfunko merged commit c37ab06 into main Jul 9, 2026
5 of 6 checks passed
@gonfunko gonfunko deleted the color-dropdown branch July 9, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FieldColour: dropdown div positioned in the top left when using zelos renderer

2 participants