diff --git a/VERSION b/VERSION index 69ab2feb..8a832192 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.239 +1.2.240 diff --git a/src/gui/scenes@proc.f90 b/src/gui/scenes@proc.f90 index 3eb984bb..8545a040 100644 --- a/src/gui/scenes@proc.f90 +++ b/src/gui/scenes@proc.f90 @@ -816,6 +816,7 @@ module function representation_menu(s,idcaller) result(changed) doerase = .false. call igTableNextRow(ImGuiTableRowFlags_None, 0._c_float) if (igTableSetColumnIndex(ic_closebutton)) then + call igAlignTextToFramePadding() str1 = "##2ic_closebutton" // string(ic_closebutton) // "," // string(i) // c_null_char if (my_CloseButton(c_loc(str1),ColorDangerButton)) doerase = .true. end if diff --git a/src/gui/windows@tree.f90 b/src/gui/windows@tree.f90 index 0d6ca6f2..fbbb504a 100644 --- a/src/gui/windows@tree.f90 +++ b/src/gui/windows@tree.f90 @@ -484,6 +484,7 @@ module subroutine draw_tree(w) ! close button if (sysc(i)%status == sys_init) then if (igTableSetColumnIndex(ic_closebutton)) then + call igAlignTextToFramePadding() str = "##1closebutton" // string(ic_closebutton) // "," // string(i) // c_null_char if (my_CloseButton(c_loc(str),ColorDangerButton)) w%forceremove = (/i/) if (igIsItemHovered(ImGuiHoveredFlags_None)) & diff --git a/src/gui/windows@view.f90 b/src/gui/windows@view.f90 index cb73c19d..cb00f5a8 100644 --- a/src/gui/windows@view.f90 +++ b/src/gui/windows@view.f90 @@ -2124,8 +2124,10 @@ module function draw_editrep_atoms(w,ttshown) result(changed) suffix = "_" // string(i) // "_" // string(j) ! species - if (igTableSetColumnIndex(ic_sp1)) & + if (igTableSetColumnIndex(ic_sp1)) then + call igAlignTextToFramePadding() call iw_text(trim(sys(isys)%c%spc(i)%name)) + end if if (igTableSetColumnIndex(ic_sp2)) & call iw_text(trim(sys(isys)%c%spc(j)%name)) @@ -2785,6 +2787,7 @@ module subroutine draw_vibrations(w) ! id if (igTableSetColumnIndex(ic_q_id)) then ! selectable + call igAlignTextToFramePadding() strl = "##selectq" // string(i) // c_null_char flags = ImGuiSelectableFlags_SpanAllColumns flags = ior(flags,ImGuiSelectableFlags_SelectOnNav) @@ -2865,6 +2868,7 @@ module subroutine draw_vibrations(w) ! id if (igTableSetColumnIndex(ic_q_id)) then ! selectable + call igAlignTextToFramePadding() strl = "##selectf" // string(i) // c_null_char flags = ImGuiSelectableFlags_SpanAllColumns flags = ior(flags,ImGuiSelectableFlags_SelectOnNav) @@ -3165,7 +3169,10 @@ function atom_selection_widget(c,isys,sty,msty) result(changed) iz = c%spc(ispc)%z ! id - if (igTableSetColumnIndex(ic_id)) call iw_text(string(i)) + if (igTableSetColumnIndex(ic_id)) then + call igAlignTextToFramePadding() + call iw_text(string(i)) + end if ! name if (igTableSetColumnIndex(ic_name)) call iw_text(string(c%spc(ispc)%name)) @@ -3312,7 +3319,10 @@ function atom_selection_widget(c,isys,sty,msty) result(changed) call igTableNextRow(ImGuiTableRowFlags_None, 0._c_float) ! id - if (igTableSetColumnIndex(im_id)) call iw_text(string(i)) + if (igTableSetColumnIndex(im_id)) then + call igAlignTextToFramePadding() + call iw_text(string(i)) + end if ! nat if (igTableSetColumnIndex(im_nat)) call iw_text(string(c%mol(i)%nat))