updateViewport
客户端更新 LynxView 视图大小。
语法
Android
参数说明
widthMeasureSpec: 当前LynxView宽度。heightMeasureSpec: 当前LynxView高度。
iOS
参数说明
preferredLayoutWidth: 当前LynxView宽度。preferredLayoutHeight: 当前LynxView高度。needLayout: 是否需要触发布局。
Desktop (C++)
Desktop public API 使用 SetFrame(...) 更新视图矩形,屏幕指标则通过独立的 UpdateScreenMetrics(...) 暴露。
参数说明
x:LynxView的 x 坐标。y:LynxView的 y 坐标。width: 当前LynxView的宽度。height: 当前LynxView的高度。
兼容性
LCD tables only load in the browser