修复bindSheet1ad1

Signed-off-by: sun-xinyan <sunxinyan2@huawei.com>
Change-Id: I43f2fee06cbf667fe8f99c4c2e45a32c27375a62
This commit is contained in:
sun-xinyan 2024-11-19 14:36:24 +08:00
parent 25f02007ce
commit 9731b3da05

View File

@ -817,6 +817,9 @@ float SheetPresentationPattern::GetSheetHeightChange()
CHECK_NULL_RETURN(pipelineContext, .0f);
auto manager = pipelineContext->GetSafeAreaManager();
auto keyboardInsert = manager->GetKeyboardInset();
if (keyboardInsert.Length() == 0) {
return 0.f;
}
auto textFieldManager = DynamicCast<TextFieldManagerNG>(pipelineContext->GetTextFieldManager());
// inputH : Distance from input component's Caret to bottom of screen
// = caret's offset + caret's height + 24vp