filter input bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-08-08 13:09:10 +02:00
parent 6fd3e7d62d
commit ccd8f12469
2 changed files with 8 additions and 3 deletions
+7 -1
View File
@@ -531,6 +531,12 @@ do
scroll_frame:SetHeight(270)
scroll_frame:SetPoint('TOPLEFT', 348, -50)
scroll_frame:EnableMouse(true)
scroll_frame:EnableMouseWheel(true)
scroll_frame:SetScript('OnMouseWheel', function()
local child = this:GetScrollChild()
child:SetScale(max(.3, min(1, child:GetScale() + arg1/10)))
aux.log(child:GetEffectiveScale())
end)
scroll_frame:RegisterForDrag('LeftButton')
scroll_frame:SetScript('OnDragStart', function()
this.x, this.y = GetCursorPosition()
@@ -554,7 +560,7 @@ do
scroll_child:SetWidth(1)
scroll_child:SetHeight(1)
scroll_frame:SetScrollChild(scroll_child)
local display = aux.gui.label(scroll_child, aux.gui.config.large_font_size2)
local display = aux.gui.label(scroll_child, 24)
display:SetPoint('TOPLEFT', 0, 0)
display:SetJustifyH('LEFT')
display:SetJustifyV('TOP')
+1 -2
View File
@@ -540,9 +540,8 @@ function public.indented_post_query_string(components)
str = str..' '
end
end
no_line_break = component[1] == 'operator' and component[2] == 'not'
if component[1] == 'operator' and component[2] then
no_line_break = component[2] == 'not'
str = str..'|cffffff00'..component[2]..(component[2] ~= 'not' and tonumber(component[3]) or '')..FONT_COLOR_CODE_CLOSE
tinsert(stack, component[3] or '*')
elseif component[1] == 'filter' then