mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix text rendering
Now that RenderView doesn't look at FrameView for its size, we need to set the size on the RenderView directly.
This commit is contained in:
parent
55960a1adb
commit
dcaef43b97
@ -10,6 +10,7 @@
|
||||
#include "sky/engine/core/frame/LocalFrame.h"
|
||||
#include "sky/engine/core/frame/Settings.h"
|
||||
#include "sky/engine/core/painting/Canvas.h"
|
||||
#include "sky/engine/core/rendering/RenderView.h"
|
||||
#include "sky/engine/platform/geometry/IntRect.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
|
||||
@ -65,10 +66,7 @@ void LayoutRoot::layout()
|
||||
|
||||
LayoutUnit maxWidth = std::max(m_minWidth, m_maxWidth);
|
||||
LayoutUnit maxHeight = std::max(m_minHeight, m_maxHeight);
|
||||
IntSize maxSize(maxWidth, maxHeight);
|
||||
|
||||
m_frame->view()->setFrameRect(IntRect(IntPoint(), maxSize));
|
||||
m_frame->view()->setLayoutSize(maxSize);
|
||||
m_frame->view()->renderView()->setFrameViewSize(IntSize(maxWidth, maxHeight));
|
||||
|
||||
m_document->updateLayout();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user