mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
!48878 【BindSheet】修复bindSheet偶现键盘收起后依旧避让的问题
Merge pull request !48878 from 孙鑫炎/dev_bindAovidKeyboardHeightProb
This commit is contained in:
commit
944985b6ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user