mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't use AbsoluteLayout.LayoutParams as it's deprecated (r=mfinkle)
Use the equivalent RelativeLayout.LayoutParams instead.
This commit is contained in:
parent
dab6c448b5
commit
e2b96d3f5e
@ -1357,10 +1357,9 @@ public class GeckoAppShell
|
||||
|
||||
getMainHandler().post(new Runnable() {
|
||||
public void run() {
|
||||
AbsoluteLayout.LayoutParams lp = new AbsoluteLayout.LayoutParams((int)w,
|
||||
(int)h,
|
||||
(int)x,
|
||||
(int)y);
|
||||
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams((int) w, (int) h);
|
||||
lp.leftMargin = (int) x;
|
||||
lp.topMargin = (int) y;
|
||||
|
||||
if (GeckoApp.geckoLayout.indexOfChild(view) == -1) {
|
||||
view.setWillNotDraw(false);
|
||||
|
Loading…
Reference in New Issue
Block a user