View Bug Report
Better Hide UI handling with viewport
Bug #: 6473
File: BTex
Date: 02-25-10 09:33 AM
By: lokyst
Status: Confirmed (Working on Fix)
Currently when the viewport is enabled, hiding the UI leaves a black bar along the bottom of the screen. Here is a quick fix that hooks the Blizz SetUIVisibility function call that I inserted at line 36 of v2.9.3

Code:
-- Hooking SetUIVisibility
local origSetUIVisibiility = SetUIVisibility
SetUIVisibility = function(...)
    local visibility = ...
    if visibility then
        BtexViewport()
    else
	WorldFrame:ClearAllPoints();
	WorldFrame:SetPoint("TOPLEFT", 0, 0);
	WorldFrame:SetPoint("BOTTOMRIGHT", 0, 0);
    end
    return origSetUIVisibiility(...)
end