Skip to content

Commit

Permalink
Fixed tab initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
frianasoa committed Dec 18, 2023
1 parent 8fc1098 commit e38a19e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
27 changes: 13 additions & 14 deletions content/ui/tabbed-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,21 @@ TabbedDialog = {

this.tab1.style = "max-height: 80%; overflow-y: auto";
this.tab2.style = "max-height: 80%; overflow-y: auto";

$(this.tabs).tabs().css({
'width': '100%',
'overflow': 'hidden',
});
$("#main-tabbed-dialog").dialog({}).close();

$("#main-tabbed-dialog").dialog({
width: 850,
height: 550,
modal: true,
autoOpen: false,
open: function (event, ui) {
$("#main-tabbed-dialog").css('overflow', 'hidden');
}
});
},

resize(width=500, height=500)
Expand Down Expand Up @@ -147,19 +157,8 @@ TabbedDialog = {
}
}
}
$(this.tabs).tabs().css({
'width': '100%',
'overflow': 'hidden',
});
$("#main-tabbed-dialog").dialog({
width: 850,
height: 550,
modal: true,
buttons: buttons,
open: function (event, ui) {
$("#main-tabbed-dialog").css('overflow', 'hidden');
}
});
$("#main-tabbed-dialog").dialog('option', 'buttons', buttons);
$("#main-tabbed-dialog").dialog("open");
},
}

Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>ZeNotes</em:name>
<em:version>0.6.4.2</em:version>
<em:version>0.6.4.3</em:version>
<em:multiprocessCompatible>true</em:multiprocessCompatible>
<em:updateURL>https://raw.githubusercontent.com/frianasoa/zenotes/main/zenote-update.json</em:updateURL>
<em:homepageURL>https://github.com/frianasoa/zenotes</em:homepageURL>
Expand Down

0 comments on commit e38a19e

Please sign in to comment.