Fixed the world select modal.

This commit is contained in:
Scott Erickson 2014-01-30 11:55:46 -08:00
parent ed1b5c6560
commit 827b5a3756
2 changed files with 35 additions and 32 deletions

View file

@ -1,30 +1,33 @@
.modal-header
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
h3
if selectingPoint
| Select Point
else
| Select Region
.modal-body
div.instructions
div.alert.alert-info
strong Click
| to pan
div.alert.alert-info
strong Scroll
| to zoom
if selectingPoint
div.alert.alert-info
strong Shift-click
| to select
else
div.alert.alert-info
strong Shift-drag
| to select
div.alert.alert-info
strong Enter
| to confirm
canvas(width=924, height=590)
.modal-footer
a.btn.btn-primary#done-button Done
.modal-dialog
.modal-content
.modal-header
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
h3
if selectingPoint
| Select Point
else
| Select Region
.modal-body
div.instructions
div.alert.alert-info
strong Click
| to pan
div.alert.alert-info
strong Scroll
| to zoom
if selectingPoint
div.alert.alert-info
strong Shift-click
| to select
else
div.alert.alert-info
strong Shift-drag
| to select
div.alert.alert-info
strong Enter
| to confirm
canvas(width=924, height=590)
.modal-footer
a.btn.btn-primary#done-button Done

View file

@ -42,8 +42,8 @@ module.exports = class WorldSelectModal extends View
initSurface: ->
canvas = @$el.find('canvas')
canvas.attr('width', @$el.width()-40)
canvas.attr('height', parseInt($('body').height()*.6))
canvas.attr('width', currentView.$el.width()*.8-70)
canvas.attr('height', currentView.$el.height()*.6)
@surface = new Surface @world, canvas, {
wizards: false
paths: false