Make the dialogs resizable.

This commit is contained in:
marcins78@gmail.com
2011-09-14 14:45:48 +00:00
parent 657ad1066b
commit 5401775c0a
2 changed files with 12 additions and 5 deletions

View File

@@ -169,23 +169,28 @@ var GempLotrGameUI = Class.extend({
.dialog({
autoOpen: false,
closeOnEscape: false,
resizable: false,
resizable: true,
minHeight: 80
});
this.dialogInstance.bind("resize", function() {
var width = $(this).width();
var height = $(this).height();
this.specialGroup.setBounds(this.padding, this.padding, width - 2 * this.padding, height - 2 * this.padding);
});
$(".ui-dialog-titlebar-close").hide();
this.infoDialog = $("<div></div>")
.dialog({
autoOpen: false,
closeOnEscape: true,
resizable: false,
resizable: true,
title: "Card information",
minHeight: 80,
minWidth: 200,
width: 600,
height: 300,
maxHeight: 300
height: 300
});
},

View File

@@ -10,7 +10,9 @@ and go with different selection.
15. Add join game screen, where players can choose to play and get paired automatically when a pair becomes available.
16. Add an option to view an ongoing game.
17. Timeout users from ChatServer the same way they are timed out of GameServer.
18.
18. Add display of site where player is on adventure path.
19. Add filtering cards to deck-builder.
20.
DONE:
1. Introduce AbstractPermanent into Blueprint hierarchy.