Merge pull request #2109 from nasa/snapshot-2105

Fix for table overflow problem in html2canvas
This commit is contained in:
Deep Tailor 2018-07-03 17:24:02 -07:00 committed by GitHub
commit 8055e050b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 36 deletions

View File

@ -133,19 +133,11 @@
/******************************************************** LOCAL CONTROLS */ /******************************************************** LOCAL CONTROLS */
// Controls placed in proximity to or overlaid on components and views // Controls placed in proximity to or overlaid on components and views
.local-controls-persist {
}
.local-controls-hidden { .local-controls-hidden {
// Used within .has-local-controls, hidden by default // Used within .has-local-controls, hidden by default
} }
.local-controls-flyout {
}
body.desktop .has-local-controls { body.desktop .has-local-controls {
// Helper class, provides hover ability to show local controls // Helper class, provides hover ability to show local controls
@ -156,7 +148,7 @@ body.desktop .has-local-controls {
} }
.local-controls-hidden { .local-controls-hidden {
@include trans-prop-nice($props: opacity, $dur: 1000ms); @include trans-prop-nice($props: opacity, $dur: 500ms);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
} }
@ -211,6 +203,7 @@ body.desktop .has-local-controls {
cursor: pointer; cursor: pointer;
height: 1em; width: 1em; height: 1em; width: 1em;
line-height: inherit; line-height: inherit;
position: relative;
&:before { &:before {
position: absolute; position: absolute;
@include trans-prop-nice(transform, 100ms); @include trans-prop-nice(transform, 100ms);

View File

@ -144,6 +144,13 @@
} }
} }
.s-status-taking-snapshot,
.overlay.snapshot {
// Handle overflow-y issues with tables and html2canvas
.l-sticky-headers .l-tabular-body { overflow: auto; }
}
/********************************************* MOBILE */ /********************************************* MOBILE */
body.mobile { body.mobile {
// Hide the start entry area, and disable ability to edit or delete an entry in mobile context // Hide the start entry area, and disable ability to edit or delete an entry in mobile context
@ -285,24 +292,3 @@ body.phone.portrait {
.overlay.l-dialog .abs.editor { .overlay.l-dialog .abs.editor {
padding-right: 0; padding-right: 0;
} }
/*
.overlay.l-dialog .outer-holder.annotation-dialog{
width: 90%;
height: 90%;
}
*/
/*
.snap-annotation-wrapper{
padding-top: 40px;
}
.t-console {
// Temp console-like reporting element
max-height: 200px;
box-sizing: border-box;
padding: 5px;
}
*/

View File

@ -34,10 +34,12 @@
} }
.s-notebook-entry { .s-notebook-entry {
transition: background-color 500ms ease-out;
background-color: rgba($colorBodyFg, 0.1); background-color: rgba($colorBodyFg, 0.1);
border-radius: $basicCr; border-radius: $basicCr;
&:hover { &:hover {
transition: background-color 50ms ease-in;
background-color: rgba($colorBodyFg, 0.2); background-color: rgba($colorBodyFg, 0.2);
} }

View File

@ -109,7 +109,7 @@
</div> </div>
</div> </div>
<!-- delete entry --> <!-- delete entry -->
<div class="holder flex-elem local-control notebook-entry-delete"> <div class="holder flex-elem local-control local-controls-hidden notebook-entry-delete">
<a class="s-icon-button icon-trash" id={{entry.id}} title="Delete Entry" ng-click="deleteEntry($event)"></a> <a class="s-icon-button icon-trash" id={{entry.id}} title="Delete Entry" ng-click="deleteEntry($event)"></a>
</div> </div>
</li> </li>

View File

@ -4,7 +4,7 @@
<span class="t-configuration"> </span> <span class="t-configuration"> </span>
<span class="t-value-inputs"> </span> <span class="t-value-inputs"> </span>
</span> </span>
<span class="flex-elem local-control l-condition-action-buttons-wrapper"> <span class="flex-elem local-control local-controls-hidden l-condition-action-buttons-wrapper">
<a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this condition"></a> <a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this condition"></a>
<a class="s-icon-button icon-trash t-delete" title="Delete this condition"></a> <a class="s-icon-button icon-trash t-delete" title="Delete this condition"></a>
</span> </span>

View File

@ -3,7 +3,7 @@
<div class="widget-rule-header"> <div class="widget-rule-header">
<span class="flex-elem l-widget-thumb-wrapper"> <span class="flex-elem l-widget-thumb-wrapper">
<span class="grippy-holder"> <span class="grippy-holder">
<span class="t-grippy grippy local-control"></span> <span class="t-grippy grippy local-control local-controls-hidden"></span>
</span> </span>
<span class="view-control expanded"></span> <span class="view-control expanded"></span>
<span class="t-widget-thumb widget-thumb"> <span class="t-widget-thumb widget-thumb">
@ -12,7 +12,7 @@
</span> </span>
<span class="flex-elem rule-title">Default Title</span> <span class="flex-elem rule-title">Default Title</span>
<span class="flex-elem rule-description grows">Rule description goes here</span> <span class="flex-elem rule-description grows">Rule description goes here</span>
<span class="flex-elem local-control l-rule-action-buttons-wrapper"> <span class="flex-elem local-control local-controls-hidden l-rule-action-buttons-wrapper">
<a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this rule"></a> <a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this rule"></a>
<a class="s-icon-button icon-trash t-delete" title="Delete this rule"></a> <a class="s-icon-button icon-trash t-delete" title="Delete this rule"></a>
</span> </span>

View File

@ -7,7 +7,7 @@
<span class="equal-to hidden"> equal to </span> <span class="equal-to hidden"> equal to </span>
<span class="t-value-inputs"></span> <span class="t-value-inputs"></span>
</span> </span>
<span class="flex-elem local-control l-widget-test-data-item-action-buttons-wrapper"> <span class="flex-elem local-control local-controls-hidden l-widget-test-data-item-action-buttons-wrapper">
<a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this test value"></a> <a class="s-icon-button icon-duplicate t-duplicate" title="Duplicate this test value"></a>
<a class="s-icon-button icon-trash t-delete" title="Delete this test value"></a> <a class="s-icon-button icon-trash t-delete" title="Delete this test value"></a>
</span> </span>

View File

@ -188,7 +188,7 @@ define([
if (!this.config.values[index]) { if (!this.config.values[index]) {
this.config.values[index] = (inputType === 'number' ? 0 : ''); this.config.values[index] = (inputType === 'number' ? 0 : '');
} }
newInput = $('<input class="sm" type = "' + inputType + '" value = "' + this.config.values[index] + '"> </input>'); newInput = $('<input type = "' + inputType + '" value = "' + this.config.values[index] + '"> </input>');
this.valueInputs.push(newInput.get(0)); this.valueInputs.push(newInput.get(0));
inputArea.append(newInput); inputArea.append(newInput);
index += 1; index += 1;