Commit 9b0c8e1d authored by Ktulho's avatar Ktulho 👶🏻

fix carousel

parent 18b63ab6
......@@ -50,6 +50,7 @@ package com.xvm.lobby.ui.tankcarousel
renderer.width = int(Macros.FormatNumberGlobal(cfg.width, DEFAULT_WIDTH - 2) + 2);
renderer.height = int(Macros.FormatNumberGlobal(cfg.height, DEFAULT_HEIGHT - 2) + 2);
renderer.content.scrollRect = new Rectangle(0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT);
renderer.setActualSize(renderer.width, renderer.height);
var formats:Array = cfg.extraFields;
if (formats)
......
......@@ -31,7 +31,7 @@ package com.xvm.lobby.ui.tankcarousel
super();
try
{
preventAutosizing = false;
//preventAutosizing = false;
_helper = new TankCarouselItemRendererHelper(this, Config.config.hangar.carousel.small, DEFAULT_RENDERER_WIDTH, DEFAULT_RENDERER_HEIGHT);
}
catch (ex:Error)
......
......@@ -33,7 +33,7 @@ package com.xvm.lobby.ui.tankcarousel
super();
try
{
preventAutosizing = false;
//preventAutosizing = false;
_helper = new TankCarouselItemRendererHelper(this, Config.config.hangar.carousel.normal, DEFAULT_RENDERER_WIDTH, DEFAULT_RENDERER_HEIGHT);
Xfw.addCommandListener(LobbyXvmApp.AS_UPDATE_BATTLE_TYPE, updateData);
......
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