mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.4 - http://otclient.net/showthread.php?tid=160
This commit is contained in:
@@ -46,11 +46,11 @@ function UIPopupMenu:onGeometryChange(oldRect, newRect)
|
||||
local ymax = parent:getY() + parent:getHeight()
|
||||
local xmax = parent:getX() + parent:getWidth()
|
||||
if newRect.y + newRect.height > ymax then
|
||||
local newy = newRect.y - newRect.height
|
||||
local newy = ymax - newRect.height
|
||||
if newy > 0 and newy + newRect.height < ymax then self:setY(newy) end
|
||||
end
|
||||
if newRect.x + newRect.width > xmax then
|
||||
local newx = newRect.x - newRect.width
|
||||
local newx = xmax - newRect.width
|
||||
if newx > 0 and newx + newRect.width < xmax then self:setX(newx) end
|
||||
end
|
||||
self:bindRectToParent()
|
||||
|
@@ -29,6 +29,9 @@ local function calcValues(self)
|
||||
end
|
||||
|
||||
local px = math.max(proportion * pxrange, 6)
|
||||
if g_app.isMobile() then
|
||||
px = math.max(proportion * pxrange, 24)
|
||||
end
|
||||
px = px - px % 2 + 1
|
||||
|
||||
local offset = 0
|
||||
|
Reference in New Issue
Block a user