Mininum widget size in editor. Tab links initial state fix

This commit is contained in:
jean-emmanuel 2016-02-14 15:03:20 +01:00
parent cc3fa04bad
commit 123db34329
4 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -67,8 +67,8 @@ enableEditor = function(){
handles:'se',
helper: "ui-helper",
stop: function( event, ui ) {
data.height = ui.size.height
data.width = ui.size.width
data.height = Math.max(ui.size.height,30)
data.width = Math.max(ui.size.width,30)
updateWidget()
}
})

View file

@ -51,7 +51,7 @@ parsetabs = function(tabs,parent,main){
tabData.stretch = tabData.stretch || false
delete tabData.id
navtabs.append(`<li><a class="${on}" data-tab="#${id}"><span>${label}</span></a></li>`)
navtabs.append(`<li class="${on}"><a class="${on}" data-tab="#${id}"><span>${label}</span></a></li>`)
var tabContent = $(`<div class="tab ${on}" id="${id}"></div>`)
tabContent.data(tabData)

View file

@ -699,6 +699,8 @@ a {
}
.ui-helper {
border: 1rem dashed $color-accent;
min-width:30rem!important;
min-height:30rem!important;
}
.ui-draggable-handle {
position: absolute;