forked from 0x2620/oxjs
fix resize bugs in calendar, list calendar etc
This commit is contained in:
parent
70376be049
commit
93fe766c7b
6 changed files with 40 additions and 19 deletions
|
|
@ -294,6 +294,9 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
|
||||
function dragend(e) {
|
||||
if (self.options.showWidget) {
|
||||
self.options.type == 'event'
|
||||
? self.$calendar.resizeCalendar()
|
||||
: self.$map.resizeMap();
|
||||
that.triggerEvent('resizewidget', {size: self.options.widgetSize});
|
||||
}
|
||||
}
|
||||
|
|
@ -439,6 +442,13 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
|
||||
function toggleLayer() {
|
||||
self.options.collapsed = !self.options.collapsed;
|
||||
if (
|
||||
!self.options.collapsed
|
||||
&& self.options.type == 'place'
|
||||
&& self.options.showWidget
|
||||
) {
|
||||
self.$map.resizeMap();
|
||||
}
|
||||
if (self.options.collapsed) {
|
||||
self.editing && that.blurItem();
|
||||
self.$annotations.loseFocus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue