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

slot height in ressource views not adapting to resource title #378

Open
inu-web opened this issue Nov 18, 2024 · 3 comments
Open

slot height in ressource views not adapting to resource title #378

inu-web opened this issue Nov 18, 2024 · 3 comments

Comments

@inu-web
Copy link

inu-web commented Nov 18, 2024

In my implementation the resourcetitle is a html from a template, prefilled with some values e.g.:


<div class="ec-resource" role="rowheader" style="flex-basis: 97px;">
	<span>
		<div class="inu-resourcetitle">
			<div class="row g-0">
				<div class="col">
					<div class="pb-1 text-xxsmall">
						<i class="fal fa-home fa-fw fa-lg"></i> <span class'fw-bold'="">Room A1</span>
					</div>
					<div class="pb-1 text-xxsmall">
						<i class="fal fa-user fa-fw fa-lg"></i> Minnie Mouse
						<hr class="m-0">
					</div>
					<div class="pb-1 text-xxsmall">
						<i class="fal fa-clock fa-fw fa-lg"></i> 07:30-18:30
						<hr class="m-0">
					</div>
					<div class="pb-1 text-xxsmall">
						<i class="fal fa-calendar fa-fw fa-lg"></i> 
						<span class="d-inline-block p-1 text-xxsmall border border-1 m-1 moveable" data-id="165" draggable="true" ondragstart="resourcedrag(event)" data-calendar="{&quot;id&quot;:&quot;&quot;,&quot;resourceIds&quot;:[148], &quot;title&quot;:&quot;Drag Donald Duck to the calendar to add a schedule&quot;, &quot;classNames&quot;:&quot;DRAFT&quot;, &quot;extendedProps&quot;:{}}">Donald Duck</span>	 
					</div>
				</div>
			</div>
		</div>
	</span> 
</div>

As long as there are no events shown in the calendar, the reource-titles do not expand to show the full content
Only the last resource at the bottom expands to the contents height
SlotHeight1

When i add events to the calendar, the slot height expands to the events height
(see screenshots)
SlotHeight2

Because the resource title is dynamic in my szenario, I can not use slot height property because it would lead to a lot of unnecessary whitespace for resources that have only 1 or two infos and not all 4 lines

The last line of this views is working as expected - so I call this an issue because the last line is behaving differently than the other ones.

Any idea or hint to solve this would be highly appreciated - thanks in advance
Gerald

@inu-web inu-web changed the title lot height in ressource views not adapting to resource title slot height in ressource views not adapting to resource title Nov 18, 2024
@vkurko
Copy link
Owner

vkurko commented Nov 19, 2024

Can you provide a live demo please? CodeSandbox, StackBlitz, etc

@LMarcinkowski
Copy link

I have similar problem with resouce height.

Zrzut ekranu 2024-11-20 o 10 26 17

@vkurko
Copy link
Owner

vkurko commented Nov 20, 2024

Can you provide a live demo please?

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

3 participants