设计时间与运行时间不匹配,标签间距过大

问题描述 投票:0回答:1

我遇到了设计时间与运行时不匹配的问题。 这是一个新项目,只有一个面板和 7 个标签。我正在使用 Edge 浏览器,我尝试通过清除缓存来纠正它,但问题仍然存在,我尝试使用 chrome,问题仍然存在,并且我还制作了一个全新的应用程序,问题仍然存在。我还在 TMS Web 选项下禁用了“IDE 内部调试”。 可能是什么原因造成的以及如何修复它? 我使用的是 TMS WEB Core v2.3.1.0 谢谢你

DFM代码:

object Form1: TForm1
  Width = 1364
  Height = 811
  object WebPanel1: TWebPanel
    Left = 0
    Top = 0
    Width = 1364
    Height = 85
    Align = alTop
    ShowCaption = False
    object WebLabel1: TWebLabel
      Left = 1315
      Top = 0
      Width = 49
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Log in'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel2: TWebLabel
      Left = 1254
      Top = 0
      Width = 61
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Contact'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel3: TWebLabel
      Left = 1218
      Top = 0
      Width = 36
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Blog'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel4: TWebLabel
      Left = 1124
      Top = 0
      Width = 94
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Mobile App'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel5: TWebLabel
      Left = 1061
      Top = 0
      Width = 63
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Website'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel6: TWebLabel
      Left = 927
      Top = 0
      Width = 134
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Business in a Box'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
    object WebLabel7: TWebLabel
      Left = 878
      Top = 0
      Width = 49
      Height = 85
      Margins.Left = 0
      Margins.Top = 0
      Margins.Right = 0
      Margins.Bottom = 0
      Align = alRight
      Caption = 'Home'
      HeightPercent = 100.000000000000000000
      Layout = tlCenter
      WidthPercent = 100.000000000000000000
      ExplicitHeight = 25
    end
  end
end

运行时间:

delphi browser delphi-11-alexandria tms tms-web-core
1个回答
0
投票

为我解决这个问题的方法是 选项>用户界面>表单设计器>高 DPI> 将“VCL Designer 高 DPI 模式*”更改为“自动(屏幕 PPI)” 它处于“低 DPI”

然后保存并关闭我的项目,完全退出我的 IDE,重新加载项目,问题就解决了。 :)

© www.soinside.com 2019 - 2024. All rights reserved.