Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Repeating Row display issue

1538009580
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
I have textareas that are displaying beyond the row. I want the row to be sized to the height of the textarea. I cannot get the row in the fieldset to change height. <div class="sheet-row sheet-row-details"> <div class="sheet-cell sheet-col0"><textarea class="sheet-ritualdesc" name="attr_ritualdescr" placeholder="Ritual Description"></textarea></div> <div class="sheet-cell sheet-col1"><textarea class="sheet-ritualcast" name="attr_ritualcasting" placeholder="Typical Casting"></textarea></div> </div> </fieldset> .sheet-rituals .sheet-row-details { height: 60px; } .sheet-rituals .sheet-row-details .sheet-col0 { width: calc(50% - 28px - 0.4em); margin-left: 20px; } .sheet-rituals .sheet-row-details .sheet-col0 textarea { width: 100%; height: 60px; resize: none; } .sheet-rituals .sheet-row-details .sheet-col1 { width: calc(50% - 28px - 0.4em); margin-left: 8px; } .sheet-rituals .sheet-row-details .sheet-col1 textarea { width: 100%; height: 60px; resize: none; }
1538011788
Finderski
Pro
Sheet Author
Compendium Curator
Is there a reason you're using textarea instead of just a text input?
1538011991
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Yes the Ritual Description and Typical Casting is usually a short paragraph
1538017133
Finderski
Pro
Sheet Author
Compendium Curator
I ask, because the boxes aren't resizable, so not sure how useful they'll be in that regard.   To answer your question, though, how  tall is the row? Because you can force the text area to be that size. I'm going to guess somewhere around 60px.  You'll likely need to make the text area a little smaller than that, due to border widths, paddings and margins.
1538054627
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
That's my point. I have already tried to change the row height of the rows in the div. I have looked at the row height in .repitem. So I am trying to figure out what to do next.
1538056162
Finderski
Pro
Sheet Author
Compendium Curator
I'm going to need more of the code to take a look. I pasted the above in a character sheet and I don't get the full row view.
1538056381
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Right. As soon as I can I'll post it.
1538056804
Finderski
Pro
Sheet Author
Compendium Curator
Cool. &nbsp;This may also help:&nbsp; <a href="https://stackoverflow.com/questions/20933266/what-is-the-minimum-height-of-a-textarea-in-css" rel="nofollow">https://stackoverflow.com/questions/20933266/what-is-the-minimum-height-of-a-textarea-in-css</a> You may need to adjust the minimum number of rows and/or line-height.
1538061694
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
CSS: .sheet-rituals { width: calc(100% - 0.4em); height: auto !important;} .sheet-ritualheader .sheet-col0 { width: calc( 100% - 320px - 0.4em) ; } .sheet-ritualheader .sheet-col1 { width: 80px; } .sheet-ritualheader .sheet-col2 { width: 80px; } .sheet-ritualheader .sheet-col3 { width: 80px; } .sheet-ritualheader .sheet-col4 { width: 80px; } .repcontainer .repeating-rituals { height: inital; overflow: auto; } .sheet-rituals .repeating-rituals .repitem { height: inital; overflow: auto; } .sheet-row-rituals .sheet-col0 { width: 22px; margin-left: 30px; } /*Button*/ .sheet-row-rituals .sheet-col1 { width: calc(100% - 378px - 0.4em); } /*Name*/ .sheet-row-rituals .sheet-col1 input { text-align:left; } .sheet-row-rituals .sheet-col2 { width: 80px; } .sheet-row-rituals .sheet-col3 { width: 80px; } .sheet-row-rituals .sheet-col4 { width: 80px; } .sheet-row-rituals .sheet-col5 { width: 80px; } .sheet-rituals .sheet-row-details { height: 60px; } .sheet-rituals .sheet-row-details .sheet-col0 { width: calc(50% - 28px - 0.4em); margin-left: 20px; } .sheet-rituals .sheet-row-details .sheet-col0 textarea { width: 100%; height: 60px; resize: none; } .sheet-rituals .sheet-row-details .sheet-col1 { width: calc(50% - 28px - 0.4em); margin-left: 8px; } .sheet-rituals .sheet-row-details .sheet-col1 textarea { width: 100%; height: 60px; resize: none; } HTML: &lt;div class='sheet-box sheet-rituals'&gt; &lt;!-- Rituals Container --&gt; &lt;div class="sheet-table sheet-ritualtable"&gt; &lt;div class="sheet-header sheet-ritualheader"&gt; &lt;div class="sheet-cell sheet-col0"&gt;Ritual Name&lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt;Energy&lt;/div&gt; &lt;div class="sheet-cell sheet-col2"&gt;Skill&lt;/div&gt; &lt;div class="sheet-cell sheet-col3"&gt;Damage&lt;/div&gt; &lt;div class="sheet-cell sheet-col4"&gt;&lt;div class="sheet-popup"&gt;Type&lt;/div&gt;&lt;span class="sheet-tooltip"&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Abbr&lt;/th&gt; &lt;th&gt;Multiplier&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt;&lt;td&gt;cut&lt;/td&gt; &lt;td&gt;x1.5&lt;/td&gt;&lt;td&gt;Cutting&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;imp&lt;/td&gt; &lt;td&gt;x2.0&lt;/td&gt;&lt;td&gt;Impaling&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;cr&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Crushing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi-&lt;/td&gt; &lt;td&gt;x0.5&lt;/td&gt;&lt;td&gt;Small Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi+&lt;/td&gt; &lt;td&gt;x1.5&lt;/td&gt;&lt;td&gt;Large Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi++&lt;/td&gt; &lt;td&gt;x2.0&lt;/td&gt;&lt;td&gt;Huge Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;aff&lt;/td&gt; &lt;td&gt;-&lt;/td&gt;&lt;td&gt;Affliction&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;burn&lt;/td&gt;&lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Burning&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;cor&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Corrosion&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;fat&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Fatigue&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;tox&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Toxic&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;spec&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;Special&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;fieldset class="repeating_rituals"&gt; &lt;input class="sheet-toggle" type="checkbox" /&gt; &lt;span class="sheet-checkbox"&gt;&lt;/span&gt; &lt;div class="sheet-row sheet-row-rituals"&gt; &lt;div class="sheet-cell sheet-col0"&gt;&lt;button type="roll" name="attr_weaponroll" value="@{whispermode} &amp;{template:GURPS} {{roll= [[3d6]] }} @{vs} {{target= [[@{skill} + @{modifier}]] }} {{charactername=@{character_name} }} {{rolltype=MAGIC}} {{rollname=@{ritualname}}} {{damagetype=@{type} }} {{woundmod=@{wound_modifier} }} {{notes=@{ritualnotes} }} {{damageroll=[[@{damage}]]}} {{hit-loc=[[ @{hitlocationroll} ]] }} {{critbody=[[ @{critbodytable} ]] }} {{crithead=[[ @{critheadtable} ]] }} {{success=([[@{skill} + (@{modifier} +1))]]}}" /&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt;&lt;input type="text" name="attr_ritualname" placeholder="Ritual Name"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col2"&gt;&lt;input type="number" name="attr_ritualenergy" value="0" placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col3"&gt;&lt;input type="number" name="attr_skill" value="10" placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col4"&gt;&lt;input type="text" name="attr_damage"placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col5"&gt; &lt;select name="attr_type"&gt; &lt;option value="cut"&gt;Cutting (cut)&lt;/option&gt; &lt;option value="imp"&gt;Impaling (imp)&lt;/option&gt; &lt;option value="cr"&gt;Crushing (cr)&lt;/option&gt; &lt;option value="pi-"&gt;Small Piercing (pi-)&lt;/option&gt; &lt;option value="pi"&gt;Piercing (pi)&lt;/option&gt; &lt;option value="pi+"&gt;Large Piercing (pi+)&lt;/option&gt; &lt;option value="pi++"&gt;Huge Piercing (pi++)&lt;/option&gt; &lt;option value="aff"&gt;Affliction (aff)&lt;/option&gt; &lt;option value="burn"&gt;Burning (burn)&lt;/option&gt; &lt;option value="cot"&gt;Corrosion (cor)&lt;/option&gt; &lt;option value="fat"&gt;Fatigue (fat)&lt;/option&gt; &lt;option value="tox"&gt;Toxic (tox)&lt;/option&gt; &lt;option value="spc"&gt;Special (spc)&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="sheet-row sheet-row-details"&gt; &lt;div class="sheet-cell sheet-col0"&gt;&lt;textarea class="sheet-ritualdesc" name="attr_ritualdescr" placeholder="Ritual Description"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt; &lt;textarea class="sheet-ritualcast" name="attr_ritualcasting" placeholder="Typical Casting"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- ===== END SHEET-BOX SHEET-RITUALS ===== --&gt;
1538081740
Finderski
Pro
Sheet Author
Compendium Curator
Can you invite me to a game where I can see a character sheet in your environment? The code above still doesn't give me what you show in the screen shot above... I tried posting a pic, but the forums won't upload it... :-/
1538082204
Finderski
Pro
Sheet Author
Compendium Curator
That's what I get with the code posted above...
1538149525
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Holy Crapizoids!!! I have fixed the textarea issue!! There was a sheet-wrapper that set the height of the cells when it should have been set to height: inherit; .&nbsp; Thanks everyone for your input.
1538149603

Edited 1538149701
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Here is the HTML and CSS &lt;div class='sheet-box sheet-rituals'&gt; &lt;!-- ===== BEGIN SHEET-BOX SHEET-RITUALS ===== --&gt; &lt;div class="sheet-table sheet-ritualtable"&gt; &lt;div class="sheet-header sheet-ritualheader"&gt; &lt;div class="sheet-cell sheet-col0"&gt;Ritual Name&lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt;Energy&lt;/div&gt; &lt;div class="sheet-cell sheet-col2"&gt;Skill&lt;/div&gt; &lt;div class="sheet-cell sheet-col3"&gt;Damage&lt;/div&gt; &lt;div class="sheet-cell sheet-col4"&gt;&lt;div class="sheet-popup"&gt;Type&lt;/div&gt;&lt;span class="sheet-tooltip"&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Abbr&lt;/th&gt; &lt;th&gt;Multiplier&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt;&lt;td&gt;cut&lt;/td&gt; &lt;td&gt;x1.5&lt;/td&gt;&lt;td&gt;Cutting&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;imp&lt;/td&gt; &lt;td&gt;x2.0&lt;/td&gt;&lt;td&gt;Impaling&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;cr&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Crushing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi-&lt;/td&gt; &lt;td&gt;x0.5&lt;/td&gt;&lt;td&gt;Small Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi+&lt;/td&gt; &lt;td&gt;x1.5&lt;/td&gt;&lt;td&gt;Large Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;pi++&lt;/td&gt; &lt;td&gt;x2.0&lt;/td&gt;&lt;td&gt;Huge Piercing&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;aff&lt;/td&gt; &lt;td&gt;-&lt;/td&gt;&lt;td&gt;Affliction&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;burn&lt;/td&gt;&lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Burning&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;cor&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Corrosion&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;fat&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Fatigue&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;tox&lt;/td&gt; &lt;td&gt;x1.0&lt;/td&gt;&lt;td&gt;Toxic&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;spec&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;td&gt;Special&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;fieldset class="repeating_rituals" style="display: none;"&gt; &lt;input class="sheet-toggle" type="checkbox" /&gt; &lt;span class="sheet-checkbox"&gt;&lt;/span&gt; &lt;div class="sheet-row sheet-row-rituals"&gt; &lt;div class="sheet-cell sheet-col0"&gt;&lt;button type="roll" name="attr_weaponroll" value="@{whispermode} &amp;{template:GURPS} {{roll= [[3d6]] }} @{vs} {{target= [[@{skill} + @{modifier}]] }} {{charactername=@{character_name} }} {{rolltype=MAGIC}} {{rollname=@{ritualname}}} {{damagetype=@{type} }} {{woundmod=@{wound_modifier} }} {{notes=@{ritualnotes} }} {{damageroll=[[@{damage}]]}} {{hit-loc=[[ @{hitlocationroll} ]] }} {{critbody=[[ @{critbodytable} ]] }} {{crithead=[[ @{critheadtable} ]] }} {{success=([[@{skill} + (@{modifier} +1))]]}}" /&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt;&lt;input type="text" name="attr_ritualname" placeholder="Ritual Name"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col2"&gt;&lt;input type="number" name="attr_ritualenergy" value="0" placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col3"&gt;&lt;input type="number" name="attr_skill" value="10" placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col4"&gt;&lt;input type="text" name="attr_damage"placeholder="0"/&gt;&lt;/div&gt; &lt;div class="sheet-cell sheet-col5"&gt; &lt;select name="attr_type"&gt; &lt;option value="cut"&gt;Cutting (cut)&lt;/option&gt; &lt;option value="imp"&gt;Impaling (imp)&lt;/option&gt; &lt;option value="cr"&gt;Crushing (cr)&lt;/option&gt; &lt;option value="pi-"&gt;Small Piercing (pi-)&lt;/option&gt; &lt;option value="pi"&gt;Piercing (pi)&lt;/option&gt; &lt;option value="pi+"&gt;Large Piercing (pi+)&lt;/option&gt; &lt;option value="pi++"&gt;Huge Piercing (pi++)&lt;/option&gt; &lt;option value="aff"&gt;Affliction (aff)&lt;/option&gt; &lt;option value="burn"&gt;Burning (burn)&lt;/option&gt; &lt;option value="cot"&gt;Corrosion (cor)&lt;/option&gt; &lt;option value="fat"&gt;Fatigue (fat)&lt;/option&gt; &lt;option value="tox"&gt;Toxic (tox)&lt;/option&gt; &lt;option value="spc"&gt;Special (spc)&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="sheet-row sheet-row-ritualdetails"&gt; &lt;div class="sheet-cell sheet-col0"&gt;&lt;textarea class="sheet-ritualdesc" name="attr_ritualdescr" placeholder="Ritual Description"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div class="sheet-cell sheet-col1"&gt; &lt;textarea class="sheet-ritualcast" name="attr_ritualcasting" placeholder="Typical Casting"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- ===== END SHEET-BOX SHEET-RITUALS ===== --&gt; /* =========================== Rituals =================================*/ .repcontainer repeating_rituals[data-groupname="repeating_rituals"] &gt; .repitem repeating_rituals{ display: inline-block; height: inherit; } .sheet-rituals { width: calc(100% - 0.4em); height: auto !important;} .sheet-ritualheader .sheet-col0 { width: calc( 100% - 320px - 0.4em) ; } .sheet-ritualheader .sheet-col1 { width: 80px; } .sheet-ritualheader .sheet-col2 { width: 80px; } .sheet-ritualheader .sheet-col3 { width: 80px; } .sheet-ritualheader .sheet-col4 { width: 80px; } .sheet-ritualtable .sheet-row-rituals .sheet-col0 { width: 22px; margin-left: 30px; } /*Button*/ .sheet-ritualtable .sheet-row-rituals .sheet-col1 { width: calc(100% - 378px - 0.4em); } /*Name*/ .sheet-ritualtable .sheet-row-rituals .sheet-col1 input { text-align:left; } .sheet-ritualtable .sheet-row-rituals .sheet-col2 { width: 80px; } .sheet-ritualtable .sheet-row-rituals .sheet-col3 { width: 80px; } .sheet-ritualtable .sheet-row-rituals .sheet-col4 { width: 80px; } .sheet-ritualtable .sheet-row-rituals .sheet-col5 { width: 80px; } .sheet-rituals .sheet-ritualtable .sheet-row-ritualdetails{ overflow: auto; overflow-x: auto; overflow-y: auto; height: inherit; } .sheet-rituals .sheet-ritualtable .sheet-row-ritualdetails .sheet-col0 { width: 400px; margin-left: 20px; } .sheet-rituals .sheet-ritualtable .sheet-row-ritualdetails .sheet-col1 { width: 400px; margin-left: 8px; } .sheet-rituals .sheet-ritualtable .sheet-row-ritualdetails .sheet-col0 textarea.sheet-ritualdesc { width: 390px; min-height: 60px; resize: vertical; } .sheet-rituals .sheet-ritualtable .sheet-row-ritualdetails .sheet-col1 textarea.sheet-ritualcast { width: 390px; min-height: 60px; resize: vertical; }
1538150203
Finderski
Pro
Sheet Author
Compendium Curator
I know the feeling, I spent the past two days trying to figure out where an extra 5px was coming from, because it kept things from lining up properly. Glad you got it sorted. :)