Commit fda0b06a authored by t.artikov's avatar t.artikov

[VNQ-#] OffscreenEditText verticalAlignment fixed

It does not seem to work without specifying LayoutParams.
parent 33798ee5
......@@ -320,7 +320,7 @@ public abstract class OffscreenView
layout_.setRight(view_width_);
layout_.setBottom(view_height_);
}
layout_.addView(view);
layout_.addView(view, new ViewGroup.LayoutParams(view_width_, view_height_));
uiAttachViewToQtScreen();
}
......@@ -1079,6 +1079,7 @@ public abstract class OffscreenView
public void run() {
final View v = getView();
if (v != null) {
v.setLayoutParams(new ViewGroup.LayoutParams(w, h));
if (!attaching_mode_) {
if (getApiLevel() >= 11) {
v.setLeft(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment