Skip to content

Fixed clipping regression on Android - #2049

Merged
carldebilly merged 3 commits into
masterfrom
dev/cdb/clipping-android-fixes
Nov 8, 2019
Merged

carldebilly merged 3 commits into
masterfrom
dev/cdb/clipping-android-fixes

Conversation

@carldebilly

Copy link
Copy Markdown
Member

Bugfix

A bug was remaining in previous PR #1726 where clipping on Android were not applied properly.

@carldebilly carldebilly self-assigned this Nov 8, 2019
@carldebilly carldebilly added kind/bug Something isn't working kind/regression Something was working, now it isn't labels Nov 8, 2019
@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform area/automation Categorizes an issue or PR as relevant to project automation platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform labels Nov 8, 2019
@carldebilly

Copy link
Copy Markdown
Member Author

/azp run

@carldebilly
carldebilly merged commit 60f26ad into master Nov 8, 2019
@carldebilly
carldebilly deleted the dev/cdb/clipping-android-fixes branch November 8, 2019 04:57
if (hasChildHeight)
{
actualHeight = Min(childHeight + childMargin.Top + childMargin.Bottom, height);
actualHeight = Min(childHeight + childMargins, size);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All references to Height should be replaced with Size

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep you're right! It's already merged, so a new PR is required for that...

ramezgerges pushed a commit to ramezgerges/uno that referenced this pull request Jul 8, 2026
The flag defaulted to false on all targets and was never assigned by the
framework (SamplesApp set it to false explicitly), so the Skia-based
TextBox (_isSkiaTextBox) was always used. Delete the flag, then inline
_isSkiaTextBox as the constant true it had become: fold every guard,
unwrap the always-taken branches, and delete the unreachable
!_isSkiaTextBox branches in TextBox(.skia/.pointers.skia).cs and
TextBoxView.skia.cs. In the shared TextBox.cs the #if __SKIA__ guards
turn into inverted #if !__SKIA__ guards where the folded branch runs only
on native, so native (WASM/Android/UIKit) behaviour is unchanged;
OnKeyDownNonSkia, now unreachable on Skia, moves under #if !__SKIA__.

The IOverlayTextBoxViewExtension layer is intentionally kept: it is still
required for the invisible native text view (IME) on WASM-Skia and
UIKit-Skia, gated by _useInvisibleNativeTextView independently of the
removed flag. Tearing that extension layer down is native-overlay work
that belongs with epic unoplatform#2049's native drop.

Tests: removed the flag save/restore no-ops; deleted the overlay-only
When_FeatureConfiguration_Changes test; dropped the overlay case from the
parameterized AutoSuggestBox test; simplified the Skia selection-start
assertions to the skia-textbox value.

Source-breaking for consumers reading/assigning the flag; no runtime
behaviour change. Package-diff entries added for the removed public API.

Part of unoplatform#2053 (remove legacy feature flags, 7.0 breaking changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation kind/bug Something isn't working kind/regression Something was working, now it isn't platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants