View Issue Details

IDProjectCategoryView StatusLast Update
0034473LazarusWidgetsetpublic2019-12-13 00:41
ReporterChris RordenAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformSystem76 Oryx ProOSPopOS(Ubuntu)OS Version18.04
Product Version2.1 (SVN)Product Build59378 
Target VersionFixed in Version 
Summary0034473: GTK3 autosize SpinEdits
DescriptionThe Lazarus anchoring and autosize layouts are in general terrific. However, if you target GTK3, the SpinEdits do not autosize correctly - the spinners are ignored when computing the object size, so the "+"/"-" widgets appear in the wrong place.
Steps To ReproducePut a couple SpinEdits in a project, set each to autosize, use anchor editor to align so one spin edit is to the right of the other. Set Widgetset for GTK3. Run the project - note that the +/- spinner of the left widget is at the location of the right widget.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK 3
Attached Files
  • spinEdit_AutoSize_Gtk3.zip (3,002 bytes)
  • gtk3_lo_dpi (3,511 bytes)
    �PNG
    
    
    IHDRw%��	pHYs���+
    iIDATx���{\Tu����3À7����Ji��i�[���f��[��6^����IY?[+/)��-��K�e�m��Z��JS�L\E� pP.r�̜��p��(�������|�u����(��ɪ���*�(�����:�Ç!*�
    )�)��tz��/�Y�VO��O7�$
    @ ���D�A�� Qr�(9H�$
    @��gαO�oNH:}.�пŭ�E�>vd��5㧮O��?�iZ�\������@���b?���>���C�J�s����c��=?�:�K�_PdT�GǍx�Y�k�!Q��P�W�[�!)ש*���Pt�Xfʱ�G��4T����!��6��ۖ�>�/�a�f=���޴)SB�o��/��ط���ο��`(���D�R�$�\��x��
    ���/�ޥ��;�o��&vkkX�s��
    ���/��P
    |y[�]z�ht:MIJ����ۺ���>bĬ�w71���MWl=dh�Pm��U�goO�9�eb���4\$
    �+�_&d���$fr�Ȯ�!D���߾���i�B��I�N���+�đ��k�	�v�f=�=@B�;>2�ci�`�
    !4�m��4h$
    �Nщc��U��{�Y��j?�i�GIVa�DܓQ�r%g��q�>ILN/�os߸YOu������j���UM`� �%G�4m��%�J�Ë���^yERq�g���P�p���*��o��V,�A�ȹ�W"��;��q�0�F�B�ns�Bh[���hd��`��i~��ǻ�՞�e���%��(͆,�z疵qCZ����/~x�U�~�G�n(A��!TkڅK.��>���bcj�mİ�c��Ֆ�1~{�5��1�t��+L#T���'rT����D��L�F�����}���-7���K	E�n�ԇõ�Zxl͊���|���M�P�t����E���f\�G��u�-c��3��xe[�/_�2n�&]���T�P4z?ݍ�����z��ٻ,W����E�O6'���v��^S\\��B�}�؞���	�^$
    ���)��ؼn��ɩ��yư[�#;�~`ذ~mk�Q�L����k	���W�oٲy_l���O��e9�E�����F���
    �RPP�����(9H�$
    @ ���D�A�� Qr�(9tN���=|��j�z��/����y��/����{�%33��=|�z��%&�t>�`0���_�b�X��,v�̓]�y��Eݩ<��@QU�>�WS�Ő��z�͖�t�h�/�Ԭ�,��ڥK��h���՛=)·慹�;>6����^u�h4v�m�\,}h�dz�[�7�y��Eݩ0���D�[F����n��V�̋�`.�N���$
    @ ���D�A�� Qr�(9H�$
    @ ���D�A�� Qr�Z�,w��?�^�
    k�$
    @�B�%N�ݻ߼QEQOw�k0)ރ��;�?�G��K��3:墳�'��.N\����}���y�d�zC%�TI���zD617n٩�ӫgW=���g���1�Yˮ��.ؕVrC%Ԗ���i���7i��Y.O��[�J[=��%�O7��h��/�)6WWv�^|d�f[����jx��3�MII/�n	5��~5�_O�|��ޟ�'g˴�&nJ���U��x|UZ�9����t��_1���-��l�_;s_ȨW6~�}���fy�T2œ�x;~gn��<�	��k3��6�K�Z�REQ��ػ�(lB�a�5�y����S�����{�՗�%��к��&��B#��V��,}w[ژi�s�Y���|��[���։�z���f��=3�>�����=�H���B��#�wG�ݺ��	�^}���_��a����UҴ�زګ�Τ��vc�^���wmit�=��r[B͙ڏzq������>��Ε��[�ė�H�[���t���3����7	�KܖpS�ƉB�	sppq�)��M�?Ώ�2�v���Op{�W�/V�bhT�X��H�ۜnK�I�cߟp6��v��������JH���9��4U��\�	�i���7�����;���v~�߿���G�=�����=��6:75���R���;H��B�;��J���o{Pk{+[u����և�V�O���d�.n�����jSs���90@qY�vw%a��TM�ޤؿz��Ck/�><g�����a��Ps?�_{���
    �	�c9.�I��򩱕��E�5��[�6�N{�PZ��n�+��#�N�^�zzTŰW�&�����Q�T��dpW��3<�&�^��oN��z?�%�S���:�!~{�=S&ݡ�UXP�-��(��Y/s�A�_�.{\�ȿ"�2jݖ�z�$���y59	/�Q�����:W^Z(A��%���Y��Ud��]���֤�љ[�D�:^�tîj��B�4W��>XX�gr�VQm�Խ�+�MC7^��ג/��DU$�Zdq�B��ڬ��v�@A�U���T����jܖP+߿�Ȉ��qߵ�A���ٿX��B�����1��/O�^�N8hmv�=]tnK�jQ��u�pX.f��
    \���FC�JL*���3��X���rH��;C9?rԜ�y}���w͎m�m3����%�3��A߾z!��m���
    !��K����Տ
    ���»c�R�*��4js{���w�t��u�̽I���?�~�Y����g߹=g�@�B����+����j���ڙ-��j޺K]�w�ܸ�	����=p���M���N��*�N����B����B����1��}+�+�k��'c۶���=7%Ԑ��ۿ2J�/��r�&���̏F�[u����[nm�B�������/�|��y�{���9�~��^nJ�-}��k��^6uEʕ�6��_���?��	!4]\R���P�	Fs�Ywv�U��)�F��v�&TU	xh�џ�������E������)����.cn���}�m�؃�XOw�ʸ���K�5�UwV���=����c� ��Cǯ�H� ���D�A�� Qr�(9H�$
    @ ���D�A�� Qr�(9H��e�Y
    c����f�y��b^�sQwʏm� Q��f=~�����҇!!aII�l6�g���=���Sal뇲cǧ�y����|uKVV��r�n�0Ob^�sQw*�m=P233��x_�Y/�$
    @ ���D�A�� Qr�(9H�$
    @ ���D�A�� Qr�(9H�$
    @ ���D��8D��ݫIEND�B`�
    gtk3_lo_dpi (3,511 bytes)
  • min_allowed.png (6,287 bytes)
    min_allowed.png (6,287 bytes)
  • 150dpi.png (6,864 bytes)
    150dpi.png (6,864 bytes)
  • 200dpi.png (7,940 bytes)
    200dpi.png (7,940 bytes)

Relationships

related to 0035699 closedZeljan Rikalo gtk3: Implement proper LogFont getting from pango layount 

Activities

Chris Rorden

2018-10-28 22:08

reporter  

spinEdit_AutoSize_Gtk3.zip (3,002 bytes)

Chris Rorden

2018-10-28 22:08

reporter  

Chris Rorden

2018-10-28 22:09

reporter  

gtk3_lo_dpi (3,511 bytes)
�PNG


IHDRw%��	pHYs���+
iIDATx���{\Tu����3À7����Ji��i�[���f��[��6^����IY?[+/)��-��K�e�m��Z��JS�L\E� pP.r�̜��p��(�������|�u����(��ɪ���*�(�����:�Ç!*�
)�)��tz��/�Y�VO��O7�$
@ ���D�A�� Qr�(9H�$
@��gαO�oNH:}.�пŭ�E�>vd��5㧮O��?�iZ�\������@���b?���>���C�J�s����c��=?�:�K�_PdT�GǍx�Y�k�!Q��P�W�[�!)ש*���Pt�Xfʱ�G��4T����!��6��ۖ�>�/�a�f=���޴)SB�o��/��ط���ο��`(���D�R�$�\��x��
���/�ޥ��;�o��&vkkX�s��
���/��P
|y[�]z�ht:MIJ����ۺ���>bĬ�w71���MWl=dh�Pm��U�goO�9�eb���4\$
�+�_&d���$fr�Ȯ�!D���߾���i�B��I�N���+�đ��k�	�v�f=�=@B�;>2�ci�`�
!4�m��4h$
�Nщc��U��{�Y��j?�i�GIVa�DܓQ�r%g��q�>ILN/�os߸YOu������j���UM`� �%G�4m��%�J�Ë���^yERq�g���P�p���*��o��V,�A�ȹ�W"��;��q�0�F�B�ns�Bh[���hd��`��i~��ǻ�՞�e���%��(͆,�z疵qCZ����/~x�U�~�G�n(A��!TkڅK.��>���bcj�mİ�c��Ֆ�1~{�5��1�t��+L#T���'rT����D��L�F�����}���-7���K	E�n�ԇõ�Zxl͊���|���M�P�t����E���f\�G��u�-c��3��xe[�/_�2n�&]���T�P4z?ݍ�����z��ٻ,W����E�O6'���v��^S\\��B�}�؞���	�^$
���)��ؼn��ɩ��yư[�#;�~`ذ~mk�Q�L����k	���W�oٲy_l���O��e9�E�����F���
�RPP�����(9H�$
@ ���D�A�� Qr�(9tN���=|��j�z��/����y��/����{�%33��=|�z��%&�t>�`0���_�b�X��,v�̓]�y��Eݩ<��@QU�>�WS�Ő��z�͖�t�h�/�Ԭ�,��ڥK��h���՛=)·慹�;>6����^u�h4v�m�\,}h�dz�[�7�y��Eݩ0���D�[F����n��V�̋�`.�N���$
@ ���D�A�� Qr�(9H�$
@ ���D�A�� Qr�Z�,w��?�^�
k�$
@�B�%N�ݻ߼QEQOw�k0)ރ��;�?�G��K��3:墳�'��.N\����}���y�d�zC%�TI���zD617n٩�ӫgW=���g���1�Yˮ��.ؕVrC%Ԗ���i���7i��Y.O��[�J[=��%�O7��h��/�)6WWv�^|d�f[����jx��3�MII/�n	5��~5�_O�|��ޟ�'g˴�&nJ���U��x|UZ�9����t��_1���-��l�_;s_ȨW6~�}���fy�T2œ�x;~gn��<�	��k3��6�K�Z�REQ��ػ�(lB�a�5�y����S�����{�՗�%��к��&��B#��V��,}w[ژi�s�Y���|��[���։�z���f��=3�>�����=�H���B��#�wG�ݺ��	�^}���_��a����UҴ�زګ�Τ��vc�^���wmit�=��r[B͙ڏzq������>��Ε��[�ė�H�[���t���3����7	�KܖpS�ƉB�	sppq�)��M�?Ώ�2�v���Op{�W�/V�bhT�X��H�ۜnK�I�cߟp6��v��������JH���9��4U��\�	�i���7�����;���v~�߿���G�=�����=��6:75���R���;H��B�;��J���o{Pk{+[u����և�V�O���d�.n�����jSs���90@qY�vw%a��TM�ޤؿz��Ck/�><g�����a��Ps?�_{���
�	�c9.�I��򩱕��E�5��[�6�N{�PZ��n�+��#�N�^�zzTŰW�&�����Q�T��dpW��3<�&�^��oN��z?�%�S���:�!~{�=S&ݡ�UXP�-��(��Y/s�A�_�.{\�ȿ"�2jݖ�z�$���y59	/�Q�����:W^Z(A��%���Y��Ud��]���֤�љ[�D�:^�tîj��B�4W��>XX�gr�VQm�Խ�+�MC7^��ג/��DU$�Zdq�B��ڬ��v�@A�U���T����jܖP+߿�Ȉ��qߵ�A���ٿX��B�����1��/O�^�N8hmv�=]tnK�jQ��u�pX.f��
\���FC�JL*���3��X���rH��;C9?rԜ�y}���w͎m�m3����%�3��A߾z!��m���
!��K����Տ
���»c�R�*��4js{���w�t��u�̽I���?�~�Y����g߹=g�@�B����+����j���ڙ-��j޺K]�w�ܸ�	����=p���M���N��*�N����B����B����1��}+�+�k��'c۶���=7%Ԑ��ۿ2J�/��r�&���̏F�[u����[nm�B�������/�|��y�{���9�~��^nJ�-}��k��^6uEʕ�6��_���?��	!4]\R���P�	Fs�Ywv�U��)�F��v�&TU	xh�џ�������E������)����.cn���}�m�؃�XOw�ʸ���K�5�UwV���=����c� ��Cǯ�H� ���D�A�� Qr�(9H�$
@ ���D�A�� Qr�(9H��e�Y
c����f�y��b^�sQwʏm� Q��f=~�����҇!!aII�l6�g���=���Sal뇲cǧ�y����|uKVV��r�n�0Ob^�sQw*�m=P233��x_�Y/�$
@ ���D�A�� Qr�(9H�$
@ ���D�A�� Qr�(9H�$
@ ���D��8D��ݫIEND�B`�
gtk3_lo_dpi (3,511 bytes)

Chris Rorden

2018-10-28 22:10

reporter   ~0111641

Issue is seen with high-DPI mode. In low-DPI the widgets look better (see attached screenshots).

Anton Kavalenka

2018-10-29 12:14

reporter   ~0111651

https://developer.gnome.org/gtk3/stable/GtkSpinButton.html

"Note that GtkSpinButton will by default make its entry large enough to accomodate the lower and upper bounds of the adjustment, which can lead to surprising results. Best practice is to set both the “width-chars” and “max-width-chars” poperties to the desired number of characters to display in the entry."

Anton Kavalenka

2018-10-29 20:18

reporter   ~0111664

Last edited: 2018-10-29 20:44

View 3 revisions

Seems like GTK3 spin edits can NOT be narrower than size defined by edit field with + 2 buttons. Otherwise edit field overflows buttons.

See the attached pictures. Seems like it is not bug, but a widgetset feature. Autosize works properly.

Anton Kavalenka

2018-10-29 20:18

reporter  

min_allowed.png (6,287 bytes)
min_allowed.png (6,287 bytes)

Anton Kavalenka

2018-10-29 20:18

reporter  

150dpi.png (6,864 bytes)
150dpi.png (6,864 bytes)

Anton Kavalenka

2018-10-29 20:19

reporter  

200dpi.png (7,940 bytes)
200dpi.png (7,940 bytes)

Issue History

Date Modified Username Field Change
2018-10-28 22:08 Chris Rorden New Issue
2018-10-28 22:08 Chris Rorden File Added: spinEdit_AutoSize_Gtk3.zip
2018-10-28 22:08 Chris Rorden File Added: DeepinScreenshot_select-area_20181028135505.png
2018-10-28 22:09 Chris Rorden File Added: gtk3_lo_dpi
2018-10-28 22:10 Chris Rorden Note Added: 0111641
2018-10-29 12:14 Anton Kavalenka Note Added: 0111651
2018-10-29 20:18 Anton Kavalenka Note Added: 0111664
2018-10-29 20:18 Anton Kavalenka File Added: min_allowed.png
2018-10-29 20:18 Anton Kavalenka File Added: 150dpi.png
2018-10-29 20:19 Anton Kavalenka File Added: 200dpi.png
2018-10-29 20:20 Anton Kavalenka Note Edited: 0111664 View Revisions
2018-10-29 20:44 Anton Kavalenka Note Edited: 0111664 View Revisions
2019-10-24 23:02 Juha Manninen Relationship added related to 0035699