map组件 controls 大小乱了

发布于 7 年前作者 gang539966 次浏览最后编辑 7 年前来自 ask

正常大小  40*40

ios 11.11

代码

controls: [{
           id: 1,
           iconPath: '/assets/images/location.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               height: 40
           },
           clickable: true
       }, {
           id: 3,
           iconPath: '/assets/images/engineer.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 2,
           iconPath: '/assets/images/my.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 4,
           iconPath: '/assets/images/custom.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }]

4 回复
guiyingchen
guiyingchen1 楼6 年前

微信版本6.5.2比较老了,麻烦更新一下看看

wzheng
wzheng2 楼6 年前

这api也是醉了只有left,top没有bottom,right。大腾讯技术就是牛叉。

plai
plai3 楼6 年前

能否给下完整的代码包试试。 另外也请考虑使用cover-view来替代

oxue
oxue4 楼5 年前

已更新6.6.5,问题依旧