cappuccino / cappuccino

Web Application Framework in JavaScript and Objective-J
https://cappuccino.dev/
GNU Lesser General Public License v2.1
2.21k stars 333 forks source link

FIXED: Before this PR, using setTextColor on a CPTextField would not take visual effect before an event #2993

Closed didierkorthoudt closed 2 years ago

didierkorthoudt commented 2 years ago

This PR simply adds a call to layoutSubviews after setting the text color.

Fixes #2985

cappbot commented 2 years ago

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

mrcarlberg commented 2 years ago

Thanks! Merged!

daboe01 commented 2 years ago

we also need a [self _setCSSStyleForInputElement]; without this, the text-color will change when this is called from an action method.