mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 01:03:08 +00:00
commit
93d4f7893b
@ -401,6 +401,9 @@ public:
|
||||
auto pipeline = AceType::DynamicCast<NG::PipelineContext>(context);
|
||||
if (pipeline) {
|
||||
ContainerScope scope(instanceId_);
|
||||
auto manager = pipeline->GetSafeAreaManager();
|
||||
CHECK_NULL_VOID(manager);
|
||||
manager->SetRawKeyboardHeight(keyboardRect.Height());
|
||||
auto uiExtMgr = pipeline->GetUIExtensionManager();
|
||||
if (uiExtMgr) {
|
||||
SetUIExtensionImeShow(keyboardRect);
|
||||
|
@ -150,6 +150,16 @@ public:
|
||||
return keyboardOffset_;
|
||||
}
|
||||
|
||||
float GetRawKeyboardHeight() const
|
||||
{
|
||||
return rawKeyboardHeight_;
|
||||
}
|
||||
|
||||
void SetRawKeyboardHeight(float height)
|
||||
{
|
||||
rawKeyboardHeight_ = height;
|
||||
}
|
||||
|
||||
bool KeyboardSafeAreaEnabled() const
|
||||
{
|
||||
return keyboardSafeAreaEnabled_;
|
||||
@ -321,6 +331,7 @@ private:
|
||||
float keyboardOffset_ = 0.0f;
|
||||
|
||||
float lastKeyboardY_ = 0.0f;
|
||||
float rawKeyboardHeight_ = 0.0f;
|
||||
|
||||
static constexpr float SAFE_AREA_VELOCITY = 0.0f;
|
||||
static constexpr float SAFE_AREA_MASS = 1.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user