mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 08:41:31 +00:00
fixed width-adjustment bug when dragging
This commit is contained in:
parent
6c62b162f2
commit
6b6708ee29
@ -99,9 +99,9 @@
|
||||
|
||||
.recordDetailOverlay{
|
||||
z-index: 1;
|
||||
width: 61.8%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 35%;
|
||||
right: 0;
|
||||
background: #FFF;
|
||||
border-left: 1px solid #CCC;
|
||||
|
@ -8,7 +8,7 @@
|
||||
<body>
|
||||
<div class="topHead">
|
||||
<h1>Anyproxy</h1>
|
||||
<a href="#" class="J_clearBtn"><span class="topBtn">Clear Logs(Command/Ctrl+X)</span></a>
|
||||
<a href="#" class="J_clearBtn"><span class="topBtn">Clear Logs(Ctrl+X)</span></a>
|
||||
</div>
|
||||
|
||||
<div class="mainTableWrapper J_mainTable">
|
||||
|
@ -144,7 +144,7 @@ seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
|
||||
});
|
||||
|
||||
$(document).on("keyup",function(e){
|
||||
if(e.keyCode == 88 && e.ctrlKey){ //ctrl x
|
||||
if(e.keyCode == 88 && e.ctrlKey){ // ctrl + x
|
||||
clearLogs();
|
||||
}else{
|
||||
console.log("key up");
|
||||
@ -204,7 +204,6 @@ seajs.use(['$','Underscore' ,'Backbone'], function($, _, Backbone) {
|
||||
if (dragging) {
|
||||
var deltaPageX = e.pageX - pageX;
|
||||
|
||||
$('.J_recordDetailOverlay').css("width",$('.J_recordDetailOverlay').width() - deltaPageX);
|
||||
$('.J_recordDetailOverlay').css("left",pageX + deltaPageX);
|
||||
if($('.J_recordDetailOverlay').width()<=100){
|
||||
$('.J_recordDetailOverlay').animate({
|
||||
|
Loading…
x
Reference in New Issue
Block a user