mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
r.ui.Bubble: Don't position a Bubble off screen.
This commit is contained in:
@@ -183,7 +183,7 @@ r.ui.Bubble = Backbone.View.extend({
|
||||
offsetX = this.$parent.outerWidth(true) - this.$el.outerWidth(true)
|
||||
offsetY = this.$parent.outerHeight(true) + 5
|
||||
this.$el.css({
|
||||
left: parentPos.left + offsetX,
|
||||
left: Math.max(parentPos.left + offsetX, 0),
|
||||
top: parentPos.top + offsetY - bodyOffset.top
|
||||
})
|
||||
} else if (this.$el.is('.anchor-right')) {
|
||||
|
||||
Reference in New Issue
Block a user