GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Having two seperators around a line has unequal vertical spacing · Issue #2657 · ocornut/imgui

Having two seperators around a line has unequal vertical spacing #2657

New issue
Copy link
New issue
Copy link
Closed
Closed
Having two seperators around a line has unequal vertical spacing#2657
Copy link
Labels
layout

Description

@Folling
Folling
opened on Jul 7, 2019
Issue body actions

Version: 1.71
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw3.cpp
Compiler: clang
Operating System: arch-linux 64bit

My Issue/Question:
Having a Separator around a widget has one pixel more to the bottom than to the top. This might be unwanted behaviour as it creates an asymmetry.

Code to reproduce:

ImGui::Begin("Window");
ImGui::Separator();
ImGui::Button("Button");
ImGui::Separator();
ImGui::End();

Is rendered as:
image

I was able to resolve this by changing thickness_layout = 0.0f to thickness_layout = 1.0f in imgui_widgets' SeparatorEx, which is rendered as:
image

Sorry for posting this in another issue earlier!

Activity

  1. ocornut
    added
    layout
    on Jul 8, 2019
  2. ocornut commented on Jul 8, 2019

    @ocornut
    ocornut
    on Jul 8, 2019
    Owner
    More actions

    Reference
    c5d83d8
    9534ef9

  3. ocornut
    changed the title [-]Having two seperators around a line has unequal spacing[/-] [+]Having two seperators around a line has unequal vertical spacing[/+] on Feb 26, 2026
  4. ocornut
    added a commit that references this issue on Feb 26, 2026

    Separator: added and following style.SeparatorSize. (#2657, #9263)

    ef022c5
  5. ocornut commented on Feb 26, 2026

    @ocornut
    ocornut
    on Feb 26, 2026
    Owner
    More actions

    This is fixed again by ef022c5.

    Reacted by Folling
  6. ocornut
    closed this as completedon Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    layout

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.