Commit ccb88c3c authored by wildfirecode's avatar wildfirecode

1

parent 17a7738d
export default function isIPhoneX() {
var u = navigator.userAgent;
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
return isIOS && screen.height == 812 && screen.width == 375
}
\ No newline at end of file
import isIPhoneX from "../../../libs/tc/utils/isIPhoneX";
export default class DeclareTextTips extends eui.Label {
constructor() {
super();
......@@ -11,5 +13,7 @@ export default class DeclareTextTips extends eui.Label {
onAddToStage() {
this.y = this.stage.stageHeight - this.textHeight - 10;
if (isIPhoneX())
this.y -= 20;
}
}
\ No newline at end of file
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