Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Bring back schema button with new Design
Browse files Browse the repository at this point in the history
This patch also fixes the width from schema Dialog that can
deform the image. This patch fix it in a determined value.

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed May 13, 2016
1 parent fe13180 commit 6697b67
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
17 changes: 17 additions & 0 deletions client/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,23 @@ iframe{
margin-left: 5px;
}

.button_schema_on {
background:url(../imgs/button_schema.png);
background-repeat: no-repeat;
z-index: 30;
position: absolute;
top: 186px;
right: 17px;
width:120px;
height:32px;
outline: 0;
}

.button_schema_on:hover {
background:url(../imgs/button_schema_hover.png);
background-repeat: no-repeat;
}

.spin_sync {
position: relative;
bottom: -17;
Expand Down
Binary file added client/imgs/button_schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/imgs/button_schema_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
// This function will run when the image is not found
$scope.schemaOn = false;
});
} else {
$scope.schemaOn = false;
}
}

Expand Down Expand Up @@ -184,7 +186,7 @@
modal: true,
position: { at: "center top"},
height: 600,
width: '75%',
width: '900',
show: { effect: "fade", duration: 300 },
hide: {effect: "fade", duration: 300 },
resize: 'disable',
Expand Down
1 change: 1 addition & 0 deletions server/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
<!-- Contains the code viewer and the svg viewer !-->
<div ng-attr-style="{{libChecked && 'margin-left: 360px;' || 'margin-left: 0px;' }}" style="background-color:#262a2e; width: 102%;">
<div id="codeCheck" collapse="!codeChecked">
<button ng-if="schemaOn == true" ng-click="showSchema()" class="button_schema_on" type="button"></button>
<div ui-ace="{onChange: editorChanged}" ng-attr-style="{{codeChecked && !svgChecked && 'height: 100%;' || 'height: 50%;'}}" style="width: 100%; float: left;" id="fbp_editor"></div>
</div>
<div id="svgCheck" collapse="!svgChecked" style="overflow-y: scroll; height: 100%; background-color:#202429;">
Expand Down

0 comments on commit 6697b67

Please sign in to comment.