mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing height issues with new saved stories sideoptions box.
This commit is contained in:
parent
16d6bb33fe
commit
70cae61b5f
2 changed files with 6 additions and 4 deletions
|
@ -3084,7 +3084,7 @@ body {
|
|||
/* ===================== */
|
||||
|
||||
.NB-sideoption-save-wrapper {
|
||||
height: 0;
|
||||
height: 0px;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -93,15 +93,15 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
|
||||
afterTagAdded: function(event, options) {
|
||||
options = options || {};
|
||||
self.resize();
|
||||
if (!options.duringInitialization) {
|
||||
self.resize();
|
||||
self.save_tags();
|
||||
}
|
||||
},
|
||||
afterTagRemoved: function(event, duringInitialization) {
|
||||
options = options || {};
|
||||
self.resize();
|
||||
if (!options.duringInitialization) {
|
||||
self.resize();
|
||||
self.save_tags();
|
||||
}
|
||||
}
|
||||
|
@ -146,12 +146,14 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
var sideoption_content_height = $save_clone.height();
|
||||
$save_clone.remove();
|
||||
var new_sideoptions_height = $sideoption_container.height() - $save_wrapper.height() + sideoption_content_height;
|
||||
|
||||
if (!options.close) {
|
||||
$sideoption.addClass('NB-active');
|
||||
$save_wrapper.addClass('NB-active');
|
||||
}
|
||||
|
||||
if (sideoption_content_height > 0) {
|
||||
$save_wrapper.css('height', '0px');
|
||||
}
|
||||
$save_wrapper.animate({
|
||||
'height': sideoption_content_height
|
||||
}, {
|
||||
|
|
Loading…
Add table
Reference in a new issue