Fix defaut board real size to center properly
This commit is contained in:
parent
497c3a3e57
commit
63ade52482
2 changed files with 27 additions and 1 deletions
|
@ -45,3 +45,7 @@ h1 a.banner {
|
||||||
#add-col[style], #delete-col[style] {
|
#add-col[style], #delete-col[style] {
|
||||||
display:inline !important; // No mouvehover effect on mobile
|
display:inline !important; // No mouvehover effect on mobile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.board-outline {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
|
@ -1051,6 +1051,29 @@ $(document).ready(function(){
|
||||||
|
|
||||||
/** Layout Framemo - Tabs **/
|
/** Layout Framemo - Tabs **/
|
||||||
|
|
||||||
|
// Defaut board real size (not 'auto' or 'inherit') saved in database
|
||||||
|
// in order to be able to center it
|
||||||
|
var boardReady = setInterval(function() {
|
||||||
|
|
||||||
|
if(boardInitialized) { // when board is ready
|
||||||
|
if($('.board-outline').attr('style') === undefined) { // check if size is imported from db
|
||||||
|
$('.board-outline').css({
|
||||||
|
'width':$('.board-outline.ui-resizable').width()+16+'px',
|
||||||
|
'height':'466px'
|
||||||
|
})
|
||||||
|
var data= {};
|
||||||
|
data.size = {
|
||||||
|
height: 466,
|
||||||
|
width: $('.board-outline.ui-resizable').width()+16
|
||||||
|
}
|
||||||
|
boardResizeHappened("resizestop", data) // using scrumblr function that keep size in db after a resize
|
||||||
|
}
|
||||||
|
clearInterval(boardReady);
|
||||||
|
}
|
||||||
|
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
// Tabs
|
||||||
$('.board-outline')
|
$('.board-outline')
|
||||||
.before(
|
.before(
|
||||||
'<ul class="nav nav-tabs">'+
|
'<ul class="nav nav-tabs">'+
|
||||||
|
@ -1064,7 +1087,6 @@ $(document).ready(function(){
|
||||||
.wrap(
|
.wrap(
|
||||||
'<div class="tab-content" style="margin:20px 0"><div role="tabpanel" class="tab-pane active" id="scrumblr"></div></div>'
|
'<div class="tab-content" style="margin:20px 0"><div role="tabpanel" class="tab-pane active" id="scrumblr"></div></div>'
|
||||||
)
|
)
|
||||||
//.css('margin','auto');
|
|
||||||
|
|
||||||
$('.names').css({'margin':'auto','width':'auto'}).addClass('pull-right');
|
$('.names').css({'margin':'auto','width':'auto'}).addClass('pull-right');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue