mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing bounce on resize.
This commit is contained in:
parent
7ec047cbec
commit
92d25f196d
1 changed files with 4 additions and 4 deletions
|
@ -94,14 +94,14 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
afterTagAdded: function(event, options) {
|
||||
options = options || {};
|
||||
if (!options.duringInitialization) {
|
||||
self.resize();
|
||||
self.resize({change_tag: true});
|
||||
self.save_tags();
|
||||
}
|
||||
},
|
||||
afterTagRemoved: function(event, duringInitialization) {
|
||||
options = options || {};
|
||||
if (!options.duringInitialization) {
|
||||
self.resize();
|
||||
self.resize({change_tag: true});
|
||||
self.save_tags();
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
$save_wrapper.addClass('NB-active');
|
||||
}
|
||||
|
||||
if (sideoption_content_height > 0) {
|
||||
if (!options.resize_open && !options.close && !options.change_tag) {
|
||||
$save_wrapper.css('height', '0px');
|
||||
}
|
||||
$save_wrapper.animate({
|
||||
|
@ -229,7 +229,7 @@ NEWSBLUR.Views.StorySaveView = Backbone.View.extend({
|
|||
$story_content.stop(true, true).css('height', 'auto');
|
||||
$story_content.removeData('original_height');
|
||||
|
||||
this.resize();
|
||||
this.resize({change_tag: true});
|
||||
},
|
||||
|
||||
save_tags: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue