Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Schedule & Resize Out Range #19

Open
ripper04 opened this issue Mar 12, 2020 · 6 comments
Open

Multi Schedule & Resize Out Range #19

ripper04 opened this issue Mar 12, 2020 · 6 comments

Comments

@ripper04
Copy link

ripper04 commented Mar 12, 2020

Hi Ateliee,
Thank you for your plugin.

I have 2 problem:

  1. I have proble with multi Schedule.
    I have #schedule1, #schedule2 with the same config.
    When I drag sc_bar to change of #schedule2, It disappear.
    This is my config:
$("#schedule1").timeSchedule({
		startTime: "07:00",
		endTime: "21:00",
		widthTime: 60 * 10,
		timeLineY: 60,
		verticalScrollbar: 20,
		timeLineBorder: 2,
		bundleMoveWidth: 6,
		draggable: true,
		resizable: true,
		rows: {
			'0': {
				title: 'Title Area1',
				schedule: [
					{
						start: '09:00',
						end: '12:00',
						text: 'Text Area',
						data: {
						}
					},
					{
						start: '11:00',
						end: '14:00',
						text: 'Text Area',
						data: {
						}
					}
				]
			},
			'1': {
				title: 'Title Area2',
				schedule: [
					{
						start: '16:00',
						end: '17:00',
						text: 'Text Area',
						data: {
						}
					}
				]
			}
		}
	});
  1. When I resize out range of start and end, It is not limited in range..
    What should I do?

Thanks you for reading,
Have a nice day!

@ripper04 ripper04 changed the title Multi Schedule Multi Schedule & Resize Out Range Mar 12, 2020
@ateliee
Copy link
Owner

ateliee commented Mar 14, 2020

I have proble with multi Schedule.
I have #schedule1, #schedule2 with the same config.
When I drag sc_bar to change of #schedule2, It disappear.
This is my config:

Version 3.0.1 supports multiple schedule displays.
Please check it.

When I resize out range of start and end, It is not limited in range..
What should I do?

I'm not sure, so if you give me some more details, I might be able to help.

thank you!

@ripper04
Copy link
Author

Hi ateliee,
Thanks you very much for update.
It's support for multiple sc displays.

When I resize out range, I had problem like picture:
image
I think we had containment for resizable.

And I think We can handle with left and right of sc_bar.

@ateliee
Copy link
Owner

ateliee commented Mar 15, 2020

Thanks for pointing out.

This has been fixed in version 3.0.2.
It seems that the settings in Resizable of jquery.ui were not enough.

$node.resizable({
    containment: $this.find('.sc_main_scroll'),
});

Check it out if you like

@ripper04
Copy link
Author

Thanks you for updating.
It's worked!

I can't handle left to resize for left side.
Do you have any options for resize both left and right?

@ateliee
Copy link
Owner

ateliee commented Mar 16, 2020

Added the option of resizeLeft from version 3.1.0.
try it.

https://github.com/ateliee/jquery.schedule/releases/tag/v3.1.0

@ripper04
Copy link
Author

Thanks you for update! It's worked!

If I click right handle and I drag for outside, It stop in end time. It's right!
But If I click left handle and I drag for outside, It not stop in start time.
In below image, It not stop in 07:00, It return for old value (before i resize)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants