From 1983cb8c455f68d2da29e88b898dc471cf783922 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 15 Dec 2016 01:31:02 +0000 Subject: [PATCH] removed the create event handler from the resizable widget --- codepot/src/codepot/views/code_file.php | 4 ---- codepot/src/codepot/views/code_folder.php | 4 ---- codepot/src/css/jquery-ui.css | 10 +++++----- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 71c0b8c6..83a9040d 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -296,10 +296,6 @@ function show_revision_graph (response) { revision_network = new vis.Network(document.getElementById('code_file_result_revision_graph'), data, options); $('#code_file_result_revision_graph').resizable({ - create: function (event, ui) { - revision_network.setSize (ui.size.width - 10, ui.size.height - 10); - revision_network.redraw(); - }, resize: function (event, ui) { revision_network.setSize (ui.size.width - 10, ui.size.height - 10); revision_network.redraw(); diff --git a/codepot/src/codepot/views/code_folder.php b/codepot/src/codepot/views/code_folder.php index 47a82308..fde43f1c 100644 --- a/codepot/src/codepot/views/code_folder.php +++ b/codepot/src/codepot/views/code_folder.php @@ -264,10 +264,6 @@ function show_revision_graph (response) { revision_network = new vis.Network(document.getElementById('code_folder_result_revision_graph'), data, options); $('#code_folder_result_revision_graph').resizable({ - create: function (event, ui) { - revision_network.setSize (ui.size.width - 10, ui.size.height - 10); - revision_network.redraw(); - }, resize: function (event, ui) { revision_network.setSize (ui.size.width - 10, ui.size.height - 10); revision_network.redraw(); diff --git a/codepot/src/css/jquery-ui.css b/codepot/src/css/jquery-ui.css index 404f76ad..7dae9581 100644 --- a/codepot/src/css/jquery-ui.css +++ b/codepot/src/css/jquery-ui.css @@ -145,7 +145,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad width: 200px; /*must have*/ height: 200px; /*must have*/ }.ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; } -.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } +.ui-dialog .ui-dialog-titlebar { padding: .2em 0.5em; position: relative; } .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } @@ -204,14 +204,14 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad /* need to fix icons sprite */ background-position:-65px -16px; } -.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ -.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } +.ui-tabs { position: relative; padding: .1em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +.ui-tabs .ui-tabs-nav { margin: 0; padding: .1em .1em 0; } .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; } -.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } +.ui-tabs .ui-tabs-nav li a { float: left; padding: .4em .3em; text-decoration: none; } .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; } .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; } .ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ -.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } +.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 0.5em 0.5em; background: none; } .ui-tooltip { padding: 8px; position: absolute;