Skip to content

Commit

Permalink
genome editor layout problems fixed in case of content scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jul 16, 2023
1 parent ecda97e commit 2d0a932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/Base/Resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Const
{
std::string const ProgramVersion = "4.0.0.beta.23";
std::string const ProgramVersion = "4.0.0.beta.24";

std::string const BasePath = "resources/";

Expand Down
3 changes: 1 addition & 2 deletions source/Gui/GenomeEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ namespace
public:
bool begin()
{
auto width = StyleRepository::getInstance().scale(ImGui::GetContentRegionAvail().x);
_columns = std::max(toInt(width / DynamicTableColumnWidth), 1);
_columns = std::max(toInt(ImGui::GetContentRegionAvail().x / scale(DynamicTableColumnWidth)), 1);
auto result = ImGui::BeginTable("##", _columns, ImGuiTableFlags_None);
if (result) {
ImGui::TableNextRow();
Expand Down

0 comments on commit 2d0a932

Please sign in to comment.