Changed drawing width calculation so that panels will display properly on public monitors