halfnelson / svelte-native

Svelte controlling native components via Nativescript
MIT License
1.82k stars 78 forks source link

GridLayout spacing rowSpan and colSpan NOT WORK #266

Closed bobwatcherx closed 2 years ago

bobwatcherx commented 2 years ago

How to ADD SPACING IN ROW TO ROW AND COLUMN TO COLUMN

my code :

<stackLayout>
<gridLayout columns="205, 115,90" rows="20,90,150"
style="margin:10" >
  <label text="KE 0,0" row="0" col="0" 
  rowSpan="5"colSpan="5" backgroundColor="#4383b8"/>

  <label text=" KE 0,1" row="0" col="1" backgroundColor="#1c486b"/>

  <label text="KE 0,2" row="0" col="2" backgroundColor="orange"/>

  <label text=" KE 1,0" row="1" col="0" backgroundColor="#286290"/>
  <label text="KE 1,1" row="1" col="1" backgroundColor="#4383b8"/>
  <label text="KE 1,2" row="1" col="2" backgroundColor="pink"/>

  <label text="XX" row="2" col="0" 
  backgroundColor="brown"/>
  <label text="XXX" row="2" col="1"
   backgroundColor="green"/>
  <label text="xXXX" row="2" col="2" backgroundColor="red"/>
</gridLayout>
        <label text="tolol Home"/>
        <button text="back"
        on:tap="{goBack}"
        style="width:30% ;background-color: orange;"
        />
    </stackLayout>