Skip to content
Snippets Groups Projects
Commit 5318589a authored by Peter Rotich's avatar Peter Rotich Committed by Jared Hancock
Browse files

Fix tabs layout when used on a dialog window

parent 70c7de2c
No related branches found
No related tags found
No related merge requests found
...@@ -1359,6 +1359,12 @@ time { ...@@ -1359,6 +1359,12 @@ time {
font-size:0.75em; font-size:0.75em;
} }
.dialog ul.tabs, .dialog ul.tabs * {
box-sizing: content-box;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
}
.dialog.draggable h3:hover { .dialog.draggable h3:hover {
cursor: crosshair; cursor: crosshair;
} }
......
...@@ -562,7 +562,7 @@ $(document).ready(function(){ ...@@ -562,7 +562,7 @@ $(document).ready(function(){
$(document).on('click.tab', 'ul.tabs li a', function(e) { $(document).on('click.tab', 'ul.tabs li a', function(e) {
e.preventDefault(); e.preventDefault();
if ($('.tab_content'+$(this).attr('href')).length) { if ($('.tab_content'+$(this).attr('href')).length) {
$('ul.tabs li a').removeClass('active'); $('ul.tabs li a', $(this).closest('ul').parent()).removeClass('active');
$(this).addClass('active'); $(this).addClass('active');
$('.tab_content').hide(); $('.tab_content').hide();
$('.tab_content'+$(this).attr('href')).show(); $('.tab_content'+$(this).attr('href')).show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment