Jump to content

UnimCalendar - Event Resize


PS1

Recommended Posts

Hey, i want to work with unimcalendar on mobile and found that resizing event is badly implemented. To be able to resize event you have to tap and hold for a second to show the ,,=" mark, then you have to drag this mark to resize. And this is kinda ok.

But the problem appears when you use eventClick e.g. to change the event. if you tap and hold for a second it fires this event so u cant resize it anymore(new form shows). 

Is there a solution to e.g. check if the mark ,,=" is visible and add ,,if case" in event method to dont show new form ?

i Attachted test case from touch samples

 

image.png.0659a1908c390fde5ce4773be009b2ff.png

CalendarTestCase.zip

Link to comment
Share on other sites

34 minutes ago, PS1 said:

if you tap and hold for a second it fires this event so u cant resize it anymore(new form shows). 

Hello,

I was able to do it, although perhaps a little inconveniently.

Link to comment
Share on other sites

Try this customCSS, here we double the font size, default 16px:

UniServerModule.CustomCSS ->

.x-calendar-event .x-calendar-event-resizer:after {
    font-size: 32px;
    font-family: monospace;
    content: "=";
}

 

Link to comment
Share on other sites

Isn't there any place for ajaxrequest to know that ,,=" appeared ? like OnHold or something ?

So i could just set variable to know if event is in ,,resize mode".  

Link to comment
Share on other sites

×
×
  • Create New...